Using IS NULL or IS NOT NULL on join conditions - Theory question
问题 Theory question here: Why does specifying table.field IS NULL or table.field IS NOT NULL not work on a join condition (left or right join for instance) but only in the where condition? Non working Example: -this should return all shipments with any returns (non null values) filtered out. However, this returns all shipments regardless if anything meets the [r.id is null] statement. SELECT * FROM shipments s LEFT OUTER JOIN returns r ON s.id = r.id AND r.id is null WHERE s.day >= CURDATE() -