其他分享
首页 > 其他分享> > 184. Department Highest Salary

184. Department Highest Salary

作者:互联网

SELECT dep.Name as Department, emp.Name as Employee, emp.Salary 
from Department dep, Employee emp 
where emp.DepartmentId=dep.Id 
and emp.Salary=(Select max(Salary) from Employee e2 where e2.DepartmentId=dep.Id)

  

转载于:https://www.cnblogs.com/asuran/p/7726904.html

标签:Salary,Name,dep,Employee,emp,Department,Highest
来源: https://blog.csdn.net/weixin_33868027/article/details/94140064