题解 | #统计各个部门的工资记录数#
统计各个部门的工资记录数
https://www.nowcoder.com/practice/6a62b6c0a7324350a6d9959fa7c21db3
select d.dept_no, dept_name, count(d.dept_no) as record from dept_emp as d, salaries as s, departments where s.emp_no = d.emp_no and departments.dept_no = d.dept_no group by d.dept_no order by d.dept_no