Home
Current Affairs January 2024

What is the correct answer?

4

TRUNCATE TABLE requires:

A. WHERE clause

B. HAVING clause

C. Both a and b

D. None of the above

Correct Answer :

D. None of the above


TRUNCATE TABLE does not require any clause.

Related Questions

What is the correct answer?

4

What does BOOL mean in MySQL Numeric Data Types?

A. A Boolean value is specified by this variable. When a value is nonzero, it is considered false, and zero is considered true.

B. A Boolean value is specified by this variable. When a value is nonzero, it is considered true, and zero is considered false.

C. A Boolean value is specified by this variable. When a value is nonzero, it is considered true, and zero is also considered true.

D. A Boolean value is specified by this variable. When a value is nonzero, it is considered false, and zero is also considered false.

What is the correct answer?

4

What is the difference between Column Level and Table Level Constraints?

A. Constraints are applied to a single row using Column Level Constraints whereas Multiple rows can be constrained using a Table Level Constraint.

B. Constraints are applied to multiple rows using Column Level Constraints whereas a single row can be constrained using a Table Level Constraint.

C. Constraints are applied to a single column using Column Level Constraints whereas Multiple columns can be constrained using a Table Level Constraint.

D. Constraints are applied to multiple columns using Column Level Constraints whereas only a single column can be constrained using a Table Level Constraint.

What is the correct answer?

4

Using which clause, can SQL EXCEPT be used in single table?

A. TO

B. AS

C. WHERE

D. IN

What is the correct answer?

4

In order to delete the database, which keyword is used?

A. DROP

B. DELETE

C. ALTER

D. None of the above

What is the correct answer?

4

What does the ALTER TABLE Statement do?

A. By deleting the stored data, this SQL statement deletes the database.

B. Columns in the SQL database can be created, deleted, or modified with this SQL statement.

C. A new table in SQL is created using this SQL statement.

D. The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement.

What is the correct answer?

4

____ and ____constraints form the core of the PRIMARY KEY constraint.

A. NOT NULL , CHECK

B. NOT NULL , DEFAULT

C. NOT NULL , FOREIGN KEY

D. NOT NULL , UNIQUE

What is the correct answer?

4

Which statement is used to select the database in SQL?

A. SELECT

B. USE

C. ALTER

D. CREATE

What is the correct answer?

4

In the case of ____ Independence Rule, Physical independence of data to access the database is a requirement for a database or an application.

A. Physical Data

B. Logical Data

C. Integrity

D. Distribution

What is the correct answer?

4

Which of the following statement is TRUE about DISTINCT Clause?

A. It cannot ignore the NULL values

B. It can ignore the NULL values

C. Its query can return multiple values

D. None of the above

What is the correct answer?

4

What does the following statement do?

A. Finds any values that end with a

B. Finds any values whose second character is a

C. Find any values that contains only two characters ending with a

D. Mysql > Savepoint ini;

What is the correct answer?

4

Full form of DDL is

A. Data Describe Language

B. Definition Data Language

C. Data Definition Language

D. Data Distinct Language

What is the correct answer?

4

Which of the following statement is TRUE about DISTINCT Clause?

A. Returns only Distinct values.

B. Only on the single column, it operates.

C. It can be used with the aggregates such as COUNT, AVG, etc.

D. All of the above

What is the correct answer?

4

What is the clause to delete all rows from the table?

A. SQL DELETE ALL ROWS Table_Name;

B. SQL DELETE ROWS Table_Name;

C. DELETE FROM ALL ROWS Table_Name;

D. DELETE FROM Table_Name;

What is the correct answer?

4

We can create View in SQL using

A. CREATE statement

B. CREATE VIEW statement

C. VIEW CREATE statement

D. SQL VIEW statement

What is the correct answer?

4

Using the SQL last() function, one can return the ______ value of the selected column.

A. First

B. Second

C. Third

D. Last

What is the correct answer?

4

Which of the statement is true?

A. The precedence-low operators are evaluated last in SQL.

B. The precedence-high operators are evaluated first in SQL.

C. Both A and B

D. None of the above

What is the correct answer?

4

Name of the data type categories are,

A. String Data types

B. Numeric Data types

C. Date and time Data types

D. All of the above

What is the correct answer?

4

What is the difference between UNION & UNION ALL operators?

A. Combining the results of two select statements will be done using UNION whereas combined records from both queries are returned by UNION ALL operator.

B. Combining the results of two select statements will be done using UNION ALL whereas combined records from both queries are returned by UNION operator.

C. After performing the UNION operation, duplicate rows will not be removed whereas after performing the UNION ALL operation, duplicate rows will be removed.

D. None of the above

What is the correct answer?

4

A single unit of work for all commands executed consecutively is known as-

A. Transaction

B. Commit

C. Rollback

D. Control

What is the correct answer?

4

To add a Primary Key constraint after table is created, which clause is used?

A. UPDATE

B. ADD

C. ALTER

D. JOIN

What is the correct answer?

4

SQL Indexes slows the execution time of which statement(s)?

A. UPDATE

B. INSERT

C. SELECT

D. Both A and B

What is the correct answer?

4

The SELECT TOP statement shows the limited number of:

A. Rows

B. Columns

C. Tables

D. None of the above

What is the correct answer?

4

_____ variables are not supported by SQL Script.

A. Bind

B. Dynamic

C. Both A) and B)

D. None of the above

What is the correct answer?

4

Which of the following is not a SQL Logical Operator?

A. SQL Equal Operator

B. SQL ANY Operator

C. SQL BETWEEN Operator

D. SQL IN Operator

What is the correct answer?

4

Determine the correct SQL command?

A. CREATE

B. UPDATE

C. DELETE

D. All of the above

What is the correct answer?

4

Select the correct statement about SQL Scripts?

A. At the run time, the SQL*Plus commands are ignored.

B. SQL Scripts and SQL Commands in the SQL Scripts have no interaction.

C. Through the SQL Script editor, SQL Commands are cut and pasted.

D. All of the above

What is the correct answer?

4

What does the DROP TABLE Statement do?

A. The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement.

B. A new table in SQL is created using this SQL statement.

C. Columns in the SQL database can be created, deleted, or modified with this SQL statement.

D. A new database will be created through this SQL statement.

What is the correct answer?

4

A database does not need to be created in ____. A direct table creation option is provided in ____.

A. MySQL

B. Oracle

C. Both A and B

D. None of the above

What is the correct answer?

4

In the relational database, in order to modify index, we need to use which command?

A. ALTER

B. MODIFY

C. UPDATE

D. ADD

What is the correct answer?

4

Name of the control in SQL Script

A. Script

B. Owner

C. Opinion

D. All of the above