NULL represents an unknown or missing value. Test it with IS NULL, not = NULL.
NULL represents an unknown or missing value. Test it with IS NULL, not = NULL. Read the query line by line and identify the input table, the transformation, and the shape of the result before running it.
SELECT name FROM customers WHERE country IS NULL;
Before running the example, predict the output columns and whether the query returns one row, many rows, or possibly no rows.
In your own words, explain the main SQL feature in today’s lesson and why it answers the question.
Recall prompt: Use WHERE country IS NULL. The sample data may return zero rows. Close this page section mentally and explain the query from memory before proceeding.
Find customers whose country has not been recorded.
Use WHERE country IS NULL. The sample data may return zero rows.