SQL — Learn

SQL MCQ SET 18

Review each question and reveal answers to strengthen your understanding

1 What is the full form of SQL?
✅ Correct Answer: 2
2 Which of the following is not a valid SQL type?
✅ Correct Answer: 3
3 Which of the following is not a DDL command?
✅ Correct Answer: 4
4 Which of the following are TCL commands?
✅ Correct Answer: 1
5 Which statement is used to delete all rows in a table without having the action logged?
✅ Correct Answer: 4
6 SQL Views are also known as
✅ Correct Answer: 2
7 How many Primary keys can have in a table?
✅ Correct Answer: 1
8 Which datatype can store unstructured data in a column?
✅ Correct Answer: 2
9 Which of the following is not Constraint in SQL?
✅ Correct Answer: 4
10 Which of the following is not a valid aggregate function?
✅ Correct Answer: 2
11 Which data manipulation command is used to combines the records from one or more tables?
✅ Correct Answer: 3
12 Which operator is used to compare a value to a specified list of values?
✅ Correct Answer: 4
13 What operator tests column for absence of data
✅ Correct Answer: 3
14 In which of the following cases a DML statement is not executed?
✅ Correct Answer: 2
15 If we have not specified ASC or DESC after a SQL ORDER BY clause, the following is used by default
✅ Correct Answer: 2
16 A command that lets you change one or more field in a table is:
✅ Correct Answer: 2
17 Which of the following is also called an INNER JOIN?
✅ Correct Answer: 2
18 Which of the following is true about the HAVING clause?
✅ Correct Answer: 3
19 ______ clause creates temporary relation for the query on which it is defined.
✅ Correct Answer: 1
20 The SQL statement: SELECT ROUND (65.726, -1) FROM DUAL; Prints:
✅ Correct Answer: 4
21 Which of the following is true about the SQL AS clause?
✅ Correct Answer: 1
22 ____ command makes the updates performed by the transaction permanent in the database?
✅ Correct Answer: 2
23 Which command is used to change the definition of a table in SQL?
✅ Correct Answer: 3
24 Which type of JOIN is used to returns rows that do not have matching values?
✅ Correct Answer: 2
25 A CASE SQL statement is ________?
✅ Correct Answer: 3
26 Which statement is true regarding routines and triggers?
✅ Correct Answer: 3
27 Which statement is true regarding procedures?
✅ Correct Answer: 1
28 Which of the following is the basic approaches for joining tables?
✅ Correct Answer: 4
29 Why we need to create an index if the primary key is already present in a table?
✅ Correct Answer: 1
30 Group of operations that form a single logical unit of work is known as
✅ Correct Answer: 4
31 Shared locks are applied while performing
✅ Correct Answer: 1
32 Sequence can generate
✅ Correct Answer: 3
33 A sequence in SQL can generate a maximum number:
✅ Correct Answer: 2
34 Which of the following is the correct order of a SQL statement?
✅ Correct Answer: 2
35 What is the difference between a PRIMARY KEY and a UNIQUE KEY?
✅ Correct Answer: 3
36 Which operator is used to compare the NULL values in SQL?
✅ Correct Answer: 3
37 When the wildcard in a WHERE clause is useful?
✅ Correct Answer: 2
38 _____ is NOT a type of constraint in SQL language?
✅ Correct Answer: 4
39 ______ is a program that performs some common action on database data and also stored in the database.
✅ Correct Answer: 1
40 What is the advantage of the clustered index?
✅ Correct Answer: 3
41 Which of the following are the DATETIME data types that can be used in column definitions?
✅ Correct Answer: 3
42 Which data dictionary table can be used to show the object privileges granted to the user on specific columns?
✅ Correct Answer: 4
43 What is the need for our query to execute successfully on an existing view?
✅ Correct Answer: 2
44 Which of the following operator can be used with a multiple-row subquery?
✅ Correct Answer: 3
Back to All Quizzes