SELECT count(*) ,  dept_code FROM student GROUP BY dept_code
Find the number of students for each department.
SELECT count ( * ) , dept_code FROM student GROUP BY dept_code
select count ( * ) , dept_code from student group by dept_code
Find the number of students for each department .