Concept Flow - GROUP BY with multiple columns
Start with SELECT query
Identify columns to GROUP BY
Sort rows by first column
Within first column groups, sort by second column
Aggregate rows in each group
Return grouped result set
The query groups rows first by the first column, then by the second column, aggregating data within each group.