INTERSECT is a set operator that returns only the rows that appear in BOTH result sets of two SELECT statements.
Key points:
- Works like a set intersection (common rows)
- Automatically removes duplicates
Both queries must return:
- Same number of columns
- Compatible data types
- Same column order
