【新知识】group by 可以嵌套使用,之前一直以为只能对一个条件group【代码】select t2.dept_no, dp.dept_name, t2.title, t2.count from(select t1.dept_no, t1.title, count(title) as count from(select t.emp_no, de.dept_no, t.title from dept_emp as de right join titles as t on t.emp_no = de.emp_no) as t1group by dept_no, title) as t2left...