方法1select eds.dept_no,eds.emp_no,ds.max_sfrom(#获取 部门、员工、薪资select e.emp_no,e.dept_no,s.salaryfrom dept_emp einner join salaries son e.emp_no = s.emp_no) as eds,(#获取 部门、薪资select e2.dept_no,max(s2.salary) as max_sfrom dept_emp e2inner join salaries s2on e2.emp_no = s2.emp_nogroup by e2.dept_no) as dswh...