Complete the code to select all rows where the column 'email' has no value (is NULL).
SELECT * FROM users WHERE email [1];To check if a column has no value, use IS NULL. Using = NULL does not work in SQL.
Complete the code to select all rows where the column 'phone' has a value (is NOT NULL).
SELECT * FROM contacts WHERE phone [1];To find rows where a column has a value, use IS NOT NULL.
Fix the error in the code to correctly select rows where 'address' is NULL.
SELECT * FROM customers WHERE address [1];Using = NULL causes an error or no results. Use IS NULL to check for NULL values.
Fill both blanks to select rows where 'birthdate' is NOT NULL and 'nickname' IS NULL.
SELECT * FROM profiles WHERE birthdate [1] AND nickname [2];
Use IS NOT NULL to check for values present and IS NULL to check for missing values.
Fill all three blanks to select rows where 'email' IS NOT NULL, 'phone' IS NULL, and 'status' IS NOT NULL.
SELECT * FROM users WHERE email [1] AND phone [2] AND status [3];
Use IS NOT NULL for columns that must have values and IS NULL for columns that must be empty.