Lecture4 Advanced SQL MCQ Final
Lecture4 Advanced SQL MCQ Final
A. UNION
B. JOIN
C. INTERSECT
D. MINUS A
A. MINUS
B. UNION
C. INTERSECT
D. JOIN A
A. PRIMARY
B. DISTINCT
C. UNION
D. UNIQUE B
A. Index
B. Inner query
C. Outer query
D. Temporary table C
A. JOIN
B. UNION
C. INTERSECT
D. MINUS A
A. SELECT queries
B. DELETE operations
C. UPDATE operations
D. INSERT operations A
A. INTERSECT
B. UNION
C. EXCEPT
D. MINUS A
A. SELECT DISTINCT
B. SELECT UNIQUE
C. SELECT DIFFERENT
D. SELECT ALL A
A. A query within anset operation query
B. A query that returns multiple rows
C. A query without conditions
D. A query with only one table A
A. MINUS
B. JOIN
C. UNION
D. INTERSECT C
A. UNION
B. MINUS
C. INTERSECT
D. JOIN B
A. DISTINCT
B. UNIQUE
C. UNION
D. PRIMARY A
A. Outer query
B. Inner query
C. Index
D. Temporary table A
A. UNION
B. INTERSECT
C. JOIN
D. MINUS C
A. DELETE operations
B. SELECT queries
C. UPDATE operations
D. INSERT operations B
A. INTERSECT
B. UNION
C. EXCEPT
D. MINUS A
A. SELECT DIFFERENT
B. SELECT UNIQUE
C. SELECT ALL
D. SELECT DISTINCT D
A. A query with only one table
B. A query without conditions
C. A query that returns multiple rows
D. A query within anset operation query D
A. MINUS
B. JOIN
C. UNION
D. INTERSECT C
A. MINUS
B. INTERSECT
C. UNION
D. JOIN A
A. DISTINCT
B. UNION
C. UNIQUE
D. PRIMARY A
A. Outer query
B. Temporary table
C. Inner query
D. Index A
A. UNION
B. MINUS
C. JOIN
D. INTERSECT C
A. SELECT queries
B. INSERT operations
C. DELETE operations
D. UPDATE operations A
A. EXCEPT
B. INTERSECT
C. MINUS
D. UNION B
A. SELECT DIFFERENT
B. SELECT UNIQUE
C. SELECT DISTINCT
D. SELECT ALL C
A. A query that returns multiple rows
B. A query with only one table
C. A query without conditions
D. A query within anset operation query D
A. INTERSECT
B. UNION
C. MINUS
D. JOIN B
A. JOIN
B. MINUS
C. UNION
D. INTERSECT B
A. DISTINCT
B. PRIMARY
C. UNIQUE
D. UNION A
A. Index
B. Inner query
C. Temporary table
D. Outer query D
A. UNION
B. JOIN
C. INTERSECT
D. MINUS B
A. INSERT operations
B. DELETE operations
C. SELECT queries
D. UPDATE operations C
A. EXCEPT
B. INTERSECT
C. MINUS
D. UNION B
A. SELECT ALL
B. SELECT DISTINCT
C. SELECT UNIQUE
D. SELECT DIFFERENT B
A. Returns multiple rows always
B. Executes once per row of the outer query
C. Executes independently of outer query
D. Cannot reference outer query columns B
A. Bitmap index
B. Hash index
C. Full-text index
D. B-tree index D
A. INNER JOIN
B. LEFT JOIN
C. CROSS JOIN
D. RIGHT JOIN C
A. No difference
B. Correlated subqueries are deprecated
C. Usually faster because it executes once
D. Usually slower due to repeated execution per outer row D
A. B-tree index
B. Bitmap index
C. Full-text index
D. Hash index A
A. CROSS JOIN
B. RIGHT JOIN
C. LEFT JOIN
D. INNER JOIN A
A. Ignoring indexes
B. Using SELECT * always
C. Analyzing the execution plan
D. Checking table size only C
A. Executes independently of outer query
B. Executes once per row of the outer query
C. Cannot reference outer query columns
D. Returns multiple rows always B
A. Hash index
B. Bitmap index
C. Full-text index
D. B-tree index D
A. LEFT JOIN
B. CROSS JOIN
C. INNER JOIN
D. RIGHT JOIN B
A. Hash index
B. B-tree index
C. Full-text index
D. Bitmap index B
A. RIGHT JOIN
B. LEFT JOIN
C. CROSS JOIN
D. INNER JOIN C
A. Ignoring indexes
B. Executing all plans and choosing fastest
C. Using heuristics only
D. Choosing query plan with lowest estimated resource cost D
A. Using aliases
B. Changing column names
C. Adding comments to SQL
D. Updated table statistics D
A nested query is a query embedded inside anset operation q Nested queries / Correlated subqueries
UNION combines the results of two queries and removes dupliSet operations
Indexes speed up query execution by allowing faster data loo Query optimization
MINUS returns rows from the first query that do not appear inSet operations
Correlated subqueries reference columns from the outer querNested queries / Correlated subqueries
JOIN is not a set operation; it combines columns from two tablSet operations
SELECT DISTINCT removes duplicates from the query output. Set operations
A nested query is a query embedded inside anset operation q Nested queries / Correlated subqueries
UNION combines the results of two queries and removes dupliSet operations
Indexes speed up query execution by allowing faster data loo Query optimization
MINUS returns rows from the first query that do not appear inSet operations
Correlated subqueries reference columns from the outer querNested queries / Correlated subqueries
JOIN is not a set operation; it combines columns from two tablSet operations
SELECT DISTINCT removes duplicates from the query output. set operation
A nested query is a query embedded inside anset operation q Nested queries / Correlated subqueries
UNION combines the results of two queries and removes dupliset operation
Indexes speed up query execution by allowing faster data loo Query optimization
MINUS returns rows from the first query that do not appear inSet operations
Correlated subqueries reference columns from the outer querNested queries / Correlated subqueries
JOIN is not a set operation; it combines columns from two tablSet operations
SELECT DISTINCT removes duplicates from the query output. set operation
A nested query is a query embedded inside anset operation q Nested queries / Correlated subqueries
UNION combines the results of two queries and removes dupliset operation
Indexes speed up query execution by allowing faster data loo Query optimization
MINUS returns rows from the first query that do not appear inSet operations
Correlated subqueries reference columns from the outer querNested queries / Correlated subqueries
JOIN is not a set operation; it combines columns from two tablSet operations
SELECT DISTINCT removes duplicates from the query output. set operation
Correlated subqueries execute once per each row of the outerNested queries / Correlated subqueries
MINUS returns rows in the first query that do not appear in t Set operations
Execution plans describe how the database engine executes aQuery optimization
CROSS JOIN returns the Cartesian product of two tables. Query optimization
Indexes speed up data retrieval but may slow down inserts. Query optimization
The query returns the symmetric difference using UNION and set operation
Correlated subqueries execute repeatedly and are slower. Nested queries / Correlated subqueries
MINUS returns rows in the first query that do not appear in t Set operations
Execution plans describe how the database engine executes aQuery optimization
CROSS JOIN returns the Cartesian product of two tables. Query optimization
Indexes speed up data retrieval but may slow down inserts. Query optimization
The query returns the symmetric difference using UNION and set operation
Correlated subqueries execute repeatedly and are slower. Nested queries / Correlated subqueries
MINUS returns rows in the first query that do not appear in t Set operations
Execution plans describe how the database engine executes aQuery optimization
CROSS JOIN returns the Cartesian product of two tables. Query optimization
Indexes speed up data retrieval but may slow down inserts. Query optimization
The query returns the symmetric difference using UNION and set operation
Correlated subqueries execute repeatedly and are slower. Nested queries / Correlated subqueries
MINUS returns rows in the first query that do not appear in t Set operations
Execution plans describe how the database engine executes aQuery optimization
CROSS JOIN returns the Cartesian product of two tables. Query optimization
Indexes on join keys reduce the need for full table scans. Query optimization
Low selectivity or outdated statistics can cause the optimizer tQuery optimization
Bitmap indexes perform poorly with many distinct values. Query optimization
NULL handling can add overhead in correlated subqueries. Nested queries / Correlated subqueries
Nested loops join performs well on small inputs; hash join scalQuery optimization
Indexes on join keys reduce the need for full table scans. Query optimization
Low selectivity or outdated statistics can cause the optimizer tQuery optimization
Bitmap indexes perform poorly with many distinct values. Query optimization
NULL handling can add overhead in correlated subqueries. Nested queries / Correlated subqueries
Nested loops join performs well on small inputs; hash join scalQuery optimization
Indexes on join keys reduce the need for full table scans. Query optimization
Low selectivity or outdated statistics can cause the optimizer tQuery optimization
Bitmap indexes perform poorly with many distinct values. Query optimization