Learn VisualLearn SQL Visual
JA

NULL Means ‘No Value’

NULL means there is no value, and an ordinary comparison cannot judge it. city = NULL is never true — you use city IS NULL. AND and OR evaluate over three values (true, false, unknown), and a NULL inside a NOT IN list can leave the whole result empty.

SELECT * FROM customers WHERE city = NULL returns how many rows?