unnested
Explore
Pro
Sign in
Learn SQL
Set Operations
Pro
23 questions
Unlock all 23 questions with a Pro subscription.
Upgrade to Pro
Output
Easy
Row count when Bob appears twice
Output
Easy
Who makes the cut in both lists?
Output
Easy
What happens to the shared row?
Output
Easy
Which name survives the subtraction?
Output
Easy
EXCEPT when the second set fully covers the first
Multiple choice
Easy
INTERSECT vs inner join
Vocabulary
Easy
UNION vs UNION ALL
Output
Easy
UNION with mismatched column names
Multiple choice
Medium
Why does this UNION break at runtime?
Multiple choice
Medium
Where does ORDER BY live in a UNION?
Multiple choice
Medium
Which set operators are order-sensitive?
Output
Medium
Swapped EXCEPT operands, same data
Multiple choice
Medium
ORDER BY inside a UNION member
Multiple choice
Medium
When is swapping UNION for UNION ALL safe?
Output
Medium
INTERSECT with duplicate rows in one table
Output
Medium
UNION ALL on a table with repeated values
Multiple choice
Medium
Compatible data types in set operations
Multiple choice
Hard
Rows or columns - what do they each add?
Multiple choice
Hard
Choosing UNION or JOIN for a real scenario
Output
Hard
Mixed set operators without parentheses
Output
Hard
Subquery grouping changes the result
Output
Hard
INTERSECT when both tables contain NULL
Output
Hard
NULL handling in EXCEPT