Complete the code to check if 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 = NULL does not work because NULL means unknown.
Complete the code to find rows where 'score' is not NULL.
SELECT * FROM results WHERE score [1] NULL;To check for values that are not NULL, use IS NOT NULL. Other operators do not work with NULL.
Fix the error in the WHERE clause to correctly filter NULL values.
SELECT * FROM orders WHERE delivery_date [1] NULL;Use IS NULL to check for NULL values. Operators like '=' or '!=' do not work with NULL.
Fill both blanks to correctly filter rows where 'status' is NULL or not NULL.
SELECT * FROM tasks WHERE status [1] NULL OR status [2] NULL;
Use IS NULL to check for NULL and IS NOT NULL to check for not NULL values.
Fill all three blanks to create a query that selects rows where 'comment' is NULL, 'rating' is not NULL, and 'approved' equals 1.
SELECT * FROM feedback WHERE comment [1] NULL AND rating [2] NULL AND approved [3] 1;
Use IS NULL to check for NULL, IS NOT NULL for not NULL, and = for normal value comparison.