Skip
Arish's avatar

148. GROUP BY with COUNT


GROUP BY Clause

Groups rows with same values for aggregate calculations.

sql
1SELECT course, COUNT(*) AS student_count
2FROM students
3GROUP BY course;
coursestudent_count
Python8
JavaScript5
Ruby4