One NULL in a subquery made our NOT IN report return zero customers
The weekly report of customers who had never ordered suddenly came back empty. Nobody had changed the query. One order row with a NULL customer_id had arrived, and SQL's three-valued logic did the rest. Why NOT IN behaves this way, and why NOT EXISTS is the safe default.