Skip
Arish's avatar

161. GROUP BY Multiple Columns


Multiple Column Grouping

sql
1SELECT course, grade, COUNT(*) AS count
2FROM students
3GROUP BY course, grade;

Groups by unique course-grade combinations.