What is COUNT DISTINCT?
Short answer
Counts unique values.
Advertisement
AModel answer
Counts unique values.
Example
Unique customers.
Real-world example
Using GROUP BY, an analyst calculated monthly revenue by region in seconds.
Likely follow-ups
- What are aggregate functions
- What is GROUP BY
- What is HAVING
Related topics