select d.dept_no, d.emp_no, s.salary maxSalary from dept_emp d join salaries s on d.emp_no = s.emp_no and (select count(*) from dept_emp d1 join salaries s1 on d1.emp_no = s1.emp_no where s.salary < s1.salary and d.dept_no = d1.dept_no ) = 0 order by d.dept_no ;通过嵌...