Testing NULLs
suggest changeIS NULL/IS NOT NULL.= NULLis never true, including forNULL = NULL.x <=> yis a null-safe comparison. It is true when both sides areNULL.
This LEFT JOIN keeps rows of a that have no match in b. Test a column that cannot be NULL in b, such as its primary key.
SELECT ...
FROM a
LEFT JOIN b ON ...
WHERE b.id IS NULL
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents