Aggregate by more than one dimension.
Section: Aggregation and Grouping
Group by multiple columns
sql
sql
SELECT country, status, COUNT(*) AS total
FROM customers
GROUP BY country, status;Explanation
Useful for reports sliced by multiple categories.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Aggregation and Grouping