unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn SQL

Set Operations

Pro

23 questions

Unlock all 23 questions with a Pro subscription.

Upgrade to Pro
OutputEasy
Row count when Bob appears twice
OutputEasy
Who makes the cut in both lists?
OutputEasy
What happens to the shared row?
OutputEasy
Which name survives the subtraction?
OutputEasy
EXCEPT when the second set fully covers the first
Multiple choiceEasy
INTERSECT vs inner join
VocabularyEasy
UNION vs UNION ALL
OutputEasy
UNION with mismatched column names
Multiple choiceMedium
Why does this UNION break at runtime?
Multiple choiceMedium
Where does ORDER BY live in a UNION?
Multiple choiceMedium
Which set operators are order-sensitive?
OutputMedium
Swapped EXCEPT operands, same data
Multiple choiceMedium
ORDER BY inside a UNION member
Multiple choiceMedium
When is swapping UNION for UNION ALL safe?
OutputMedium
INTERSECT with duplicate rows in one table
OutputMedium
UNION ALL on a table with repeated values
Multiple choiceMedium
Compatible data types in set operations
Multiple choiceHard
Rows or columns - what do they each add?
Multiple choiceHard
Choosing UNION or JOIN for a real scenario
OutputHard
Mixed set operators without parentheses
OutputHard
Subquery grouping changes the result
OutputHard
INTERSECT when both tables contain NULL
OutputHard
NULL handling in EXCEPT