Name the operation which UNION ALL skips when compared to UNION?
-
HASH JOIN
-
SORT UNIQUE
-
TABLE FULL ACCESS
-
INDEX RANGE SCAN
B
Correct answer
Explanation
UNION performs a SORT UNIQUE operation to eliminate duplicate rows from the combined result set, which requires sorting. UNION ALL skips this sorting and deduplication step, simply concatenating all rows from both queries. This makes UNION ALL faster when you don't need to remove duplicates.