Problem Statement
Which statement about COUNT is correct?
Explanation
COUNT(column) counts only non-NULL entries in that column. COUNT(*) includes every row regardless of NULLs.
When you need unique non-NULLs, use COUNT(DISTINCT col).
Code Solution
SolutionRead Only
SELECT COUNT(*) all_rows, COUNT(email) emails FROM users;
Practice Sets
This question appears in the following practice sets:
