Complete the code to select rows where the column 'email' has no value (is NULL).
SELECT * FROM users WHERE email [1] NULL;In SQL, to check if a column is NULL, you use IS NULL. Using '=' does not work for NULL values.
Complete the code to select rows where the column 'phone' has a value (is NOT NULL).
SELECT * FROM contacts WHERE phone [1] NOT NULL;To check for values that are not NULL, use IS NOT NULL in SQL.
Fix the error in the code to select rows where 'address' is NULL.
SELECT * FROM customers WHERE address [1] NULL;Using '=' to compare with NULL is incorrect. Use IS NULL to check for NULL values.
Fill both blanks to select rows where 'status' is NOT NULL and 'email' is NULL.
SELECT * FROM users WHERE status [1] NOT NULL AND email [2] NULL;
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 'last_login' is NOT NULL, 'email' is NOT NULL, and 'phone' is NULL.
SELECT * FROM members WHERE last_login [1] NOT NULL AND email [2] NOT NULL AND phone [3] NULL;
Use IS NOT NULL to check for values present and IS NULL to check for missing values in SQL.