After a LEFT JOIN, filtering where the right-side key is NULL keeps only the left rows that found no match.
Orders input
Start with orders, including one missing customer key and one NULL key.
Orders
Customers input
Customers only has the keys that can match.
Customers
Join query
LEFT JOIN first, then keep rows where the right customer key is NULL.
LEFT JOIN then WHERE right key IS NULL
Joined output
Only the unmatched left rows remain, with NULL right-side cells.
unmatched left rows