Lesson 5.4 · Pro
Find rows with no match
Anti-joins (no match) and semi-joins (has a match), and the NOT IN trap with NULLs.
In this lesson
- LEFT JOIN, then keep the NULLs
- NOT EXISTS says it directly
- The NOT IN trap
- EXISTS keeps rows that do have a match
- Match on every key column
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.