select de.dept_no,dept_name,count(*) as sum from dept_emp de
inner join departments d on de.dept_no=d.dept_no
inner join salaries s on de.emp_no=s.emp_no
group by de.dept_no
order by de.dept_no asc;