Problem Statement
Which predicate correctly checks for missing values in standard SQL?
Explanation
NULL represents unknown. Comparisons with equals return unknown, not true. Use IS NULL or IS NOT NULL.
When aggregating, functions like COUNT(col) skip NULLs, while COUNT(*) counts all rows.
Code Solution
SolutionRead Only
SELECT COUNT(*) total, COUNT(email) with_email FROM users WHERE deleted_at IS NULL;
