# Write your MySQL query statement below
select dept_name, ifnull(t.people,0) student_number
from department d left join
(
select dept_id, count(*) people
from student
group by dept_id
) t
on d.dept_id = t.dept_id
order by student_number desc, dept_name