23

Count Students by Class

EasyCOUNTGROUP BY

Problem Description

Write a SQL query to count how many students are in each class.

Example Output

| class | student_count | |-------|---------------| | 9 | 4 | | 10 | 5 | | 11 | 3 | | 12 | 3 |

Hints

Unlocks after 2 more attempts
Submit your solution to unlock hints
//#23 Count Students by Class
Easy

Loading schema...

Loading editor...

No results yet

Run a query to see results