Explore topic-wise MCQs in Structured Query Language (SQL).

This section includes 13 Mcqs, each offering curated multiple-choice questions to sharpen your Structured Query Language (SQL) knowledge and support exam preparation. Choose a topic below to get started.

1.

SELECT on a MERGE table is like _____________

A. UNION ALL
B. UNION
C. UNION DISTINCT
D. JOIN
Answer» B. UNION
2.

Which table is used to run a UNION-type query on MyISAM tables?

A. TRADITIONAL
B. MERGE
C. SERVELET
D. UNITE
Answer» C. SERVELET
3.

Suppose it is desired that UNION operation should return not more than 3 rows. Which keyword is used for this?

A. LIMIT
B. RESTRICT
C. COUNT
D. SORT
Answer» B. RESTRICT
4.

Which clause is used to sort a UNION result as a whole?

A. LIMIT
B. ORDER BY
C. GROUP BY
D. SORT
Answer» C. GROUP BY
5.

The UNION ALL has a higher precedence than UNION DISTINCT.

A. True
B. False
Answer» C.
6.

The following SQL statement is invalid.

A. True
B. FalseView Answer
Answer» C.
7.

WHICH_CLAUSE_IS_USED_TO_SORT_A_UNION_RESULT_AS_A_WHOLE??$

A. LIMIT
B. ORDER BY
C. GROUP BY
D. SORT
Answer» C. GROUP BY
8.

Suppose_it_is_desired_that_UNION_operation_should_return_not_more_than_3_rows._Which_keyword_is_used_for_this?$

A. LIMIT
B. RESTRICT
C. COUNT
D. SORT
Answer» B. RESTRICT
9.

The UNION ALL has a higher precedence than UNION DISTINCT?

A. True
B. False
Answer» B. False
10.

Which keyword used with UNION retains duplicate rows?

A. ALL
B. NARROW
C. STRICT
D. DISTINCT
Answer» C. STRICT
11.

Which keyword used with UNION does not retain duplicate rows?

A. ALL
B. NARROW
C. STRICT
D. DISTINCT
Answer» C. STRICT
12.

row name

A. column name
B. table name
C. database name
Answer» C. database name
13.

To combine multiple retrievals, we write several SELECT statements and put the keyword between them. What is the keyword?

A. COMBINE
B. CONCAT
C. JOIN
D. UNION
Answer» E.