select uni.dept_no, uni.emp_no, max_salary.salary from (select d.dept_no, s.emp_no, s.salary from dept_emp d join salaries s on d.emp_no = s.emp_no and d.to_date = '9999-01-01' and s.to_date = '9999-01-01' ) as uni, /* 部门编号,员工编号,当前薪水 */ (select d.dept_no, max(s.s...