← Back ← JOIN + SUM HAVING →

LEFT JOIN + IS NULL

Anti-join — rows in A with no match in B

SQL drill • Joins

Find customers who have never placed an order.
customers(id, name), orders(id, customer_id, ...). Return customer names only.
Supporting drill: SQL is not usually the whole interview, but join literacy shows up next to JOIN + GROUP BY and window questions.

Pattern
LEFT JOIN + WHERE B.key IS NULL
Step 0/6Line
Preserved left row NULL padding (no match)
Conceptual evaluation
Press Step or Play.
Ready
LEFT JOIN keeps every left row; missing right side becomes NULL — filter those.