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