select t4.dept_no,t4.emp_no,t4.salaryfrom (select t3.dept_no,t3.emp_no,t3.salary,row_number() over(partition by t3.dept_no order by t3.salary desc) as rkfrom (select * from dept_emp t1inner join salaries t2on t1.emp_no=t2.emp_no)t3)t4where t4.rk=1order by t4.dept_no asc; 直接关联两张表,使用开窗函数,按照编号进行分组,按照薪水...