无
dept_no | emp_no | salary |
---|---|---|
d001 | 10001 | 88958 |
d002 | 10006 | 43311 |
d003 | 10005 | 94692 |
d004 | 10004 | 74057 |
d005 | 10007 | 88070 |
d006 | 10009 | 95409 |
SQL:
select d.dept_no,d.emp_no,max(s.salary) from dept_emp d,salaries s on d.emp_no=s.emp_no where d.to_date=‘9999-01-01‘and s.to_date=‘9999-01-01‘ group by d.dept_no
SQL-12 获取所有部门中当前员工薪水最高的相关信息,给出dept_no, emp_no以及其对应的salary
原文:https://www.cnblogs.com/kexiblog/p/10655281.html