Problems / Count by Category / Editorial
This is the most fundamental aggregation pattern:
category
COUNT(*) counts all rows in a group regardless of NULL values, while COUNT(column) only counts non-NULL values.
COUNT(*)
COUNT(column)
Solve Count by Category yourself →