Problems / Left Join Nulls / Editorial
employees
projects
emp_id
WHERE p.project_id IS NULL
The LEFT JOIN + IS NULL pattern is one of the most common ways to find "missing" relationships. It's equivalent to NOT EXISTS or NOT IN but often more readable.
NOT EXISTS
NOT IN
Solve Left Join Nulls yourself →