Explain it in 60 seconds
Choosing the right COUNT
Data Analyst · SQL for Analytics · Beginner
What is the difference between COUNT(*), COUNT(column) and COUNT(DISTINCT column)?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- COUNT(*): all rows.
- COUNT(col): non-NULL values.
- COUNT(DISTINCT col): unique non-NULL values.
- Matters for NULL-heavy columns.
- Use DISTINCT for unique users.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.