Complete the code to select rows where the column 'age' is NULL.
SELECT * FROM users WHERE age [1] NULL;In SQL, to check if a value is NULL, you must use IS NULL. Using '=' or '!=' does not work as expected with NULL.
Complete the code to select rows where 'score' is NOT NULL.
SELECT * FROM results WHERE score [1] NULL;To find rows where a column is not NULL, use IS NOT NULL. Other operators do not work correctly with NULL.
Fix the error in the WHERE clause to correctly filter rows where 'date' is NULL.
SELECT * FROM events WHERE date [1] NULL;Only IS NULL correctly checks for NULL values in SQL. '=' causes errors or unexpected results.
Fill both blanks to select rows where 'status' is NULL or 'priority' is NOT NULL.
SELECT * FROM tasks WHERE status [1] NULL OR priority [2] NULL;
Use IS NULL to check for NULL and IS NOT NULL to check for NOT NULL values.
Fill all three blanks to select rows where 'email' is NULL, 'phone' is NOT NULL, and 'address' is NULL.
SELECT * FROM contacts WHERE email [1] NULL AND phone [2] NULL AND address [3] NULL;
Use IS NULL to check for NULL and IS NOT NULL to check for NOT NULL values in SQL.