Explain it in 60 seconds
INTERSECT and EXCEPT
Data Engineering · SQL · Intermediate
What do INTERSECT and EXCEPT (or MINUS) do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- INTERSECT returns rows present in both queries.
- EXCEPT or MINUS returns rows in the first query but not the second.
- They compare whole rows, all selected columns.
- They remove duplicates by default.
- Great for comparing two versions of a table.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.