This is a follow up question to my last question about table joins in MySQL
I need to be able to select the NULL values from the left joined table.
Here\'s m
To compare NULL values you have to use the IS NULL predicate, like this:
NULL
IS NULL
SELECT table1.*, table2.* FROM table1 LEFT JOIN table2 ON table1.id=table2.id WHERE table2.surname IS NULL