SQL MCQ Quiz Hub

SQL MCQ SET 18

Choose a topic to test your knowledge and improve your SQL skills

What is the full form of SQL?





✅ Correct Answer: 2

Which of the following is not a valid SQL type?





✅ Correct Answer: 3

Which of the following is not a DDL command?





✅ Correct Answer: 4

Which of the following are TCL commands?





✅ Correct Answer: 1

Which statement is used to delete all rows in a table without having the action logged?





✅ Correct Answer: 4

SQL Views are also known as





✅ Correct Answer: 2

How many Primary keys can have in a table?





✅ Correct Answer: 1

Which datatype can store unstructured data in a column?





✅ Correct Answer: 2

Which of the following is not Constraint in SQL?





✅ Correct Answer: 4

Which of the following is not a valid aggregate function?





✅ Correct Answer: 2

Which data manipulation command is used to combines the records from one or more tables?





✅ Correct Answer: 3

Which operator is used to compare a value to a specified list of values?





✅ Correct Answer: 4

What operator tests column for absence of data





✅ Correct Answer: 3

In which of the following cases a DML statement is not executed?





✅ Correct Answer: 2

If we have not specified ASC or DESC after a SQL ORDER BY clause, the following is used by default





✅ Correct Answer: 2

A command that lets you change one or more field in a table is:





✅ Correct Answer: 2

Which of the following is also called an INNER JOIN?





✅ Correct Answer: 2

Which of the following is true about the HAVING clause?





✅ Correct Answer: 3

______ clause creates temporary relation for the query on which it is defined.





✅ Correct Answer: 1

The SQL statement: SELECT ROUND (65.726, -1) FROM DUAL; Prints:





✅ Correct Answer: 4

Which of the following is true about the SQL AS clause?





✅ Correct Answer: 1

____ command makes the updates performed by the transaction permanent in the database?





✅ Correct Answer: 2

Which command is used to change the definition of a table in SQL?





✅ Correct Answer: 3

Which type of JOIN is used to returns rows that do not have matching values?





✅ Correct Answer: 2

A CASE SQL statement is ________?





✅ Correct Answer: 3

Which statement is true regarding routines and triggers?





✅ Correct Answer: 3

Which statement is true regarding procedures?





✅ Correct Answer: 1

Which of the following is the basic approaches for joining tables?





✅ Correct Answer: 4

Why we need to create an index if the primary key is already present in a table?





✅ Correct Answer: 1

Group of operations that form a single logical unit of work is known as





✅ Correct Answer: 4

Shared locks are applied while performing





✅ Correct Answer: 1

Sequence can generate





✅ Correct Answer: 3

A sequence in SQL can generate a maximum number:





✅ Correct Answer: 2

Which of the following is the correct order of a SQL statement?





✅ Correct Answer: 2

What is the difference between a PRIMARY KEY and a UNIQUE KEY?





✅ Correct Answer: 3

Which operator is used to compare the NULL values in SQL?





✅ Correct Answer: 3

When the wildcard in a WHERE clause is useful?





✅ Correct Answer: 2

_____ is NOT a type of constraint in SQL language?





✅ Correct Answer: 4

______ is a program that performs some common action on database data and also stored in the database.





✅ Correct Answer: 1

What is the advantage of the clustered index?





✅ Correct Answer: 3

Which of the following are the DATETIME data types that can be used in column definitions?





✅ Correct Answer: 3

Which data dictionary table can be used to show the object privileges granted to the user on specific columns?





✅ Correct Answer: 4

What is the need for our query to execute successfully on an existing view?





✅ Correct Answer: 2

Which of the following operator can be used with a multiple-row subquery?





✅ Correct Answer: 3