Complete the code to select rows where the column 'age' has no value.
SELECT * FROM users WHERE age [1];In SQL, to check if a column has no value (NULL), you must use IS NULL. Using = NULL does not work as expected.
Complete the code to select rows where the column 'email' is not missing.
SELECT * FROM contacts WHERE email [1];To find rows where 'email' has a value, use IS NOT NULL. This excludes rows where 'email' is NULL.
Fix the error in the query to correctly find rows where 'score' is missing.
SELECT * FROM results WHERE score [1];Using = NULL or != NULL does not work in SQL. Use IS NULL to check for missing values.
Fill both blanks to select rows where 'last_login' is missing and 'status' is active.
SELECT * FROM users WHERE last_login [1] AND status = [2];
Use IS NULL to check for missing 'last_login'. For 'status', use the string value 'active' to filter active users.
Fill all three blanks to select rows where 'comment' is not missing, 'rating' is greater than 3, and 'verified' is true.
SELECT * FROM feedback WHERE comment [1] AND rating [2] 3 AND verified = [3];
Use IS NOT NULL to find rows where 'comment' exists. Use > to check 'rating' greater than 3. Use TRUE for boolean 'verified'.