菜鸟题解,牛客网这道题不如力扣测试用例来的严格,而且也不能贡献测试用例,具体解答思路应该参考力扣的数据库184题-部门工资最高的员工.我对于联结学艺不精,只会用一点点,欢迎指正,还在学习中. select a.dept_no, a.emp_no,b.salary as max_salary from dept_emp a left join salaries b on a.emp_no = b.emp_no where (a.dept_no,b.salary) in ( select a.dept_no,max(b.salary) from dept_emp a left jo...