185. Department Top Three Salaries
作者:互联网
select d.Name Department, e1.Name Employee, e1.Salary
from Employee e1
join Department d
on e1.DepartmentId = d.Id
where 3 > (select count(distinct(e2.Salary))
from Employee e2
where e2.Salary > e1.Salary
and e1.DepartmentId = e2.DepartmentId
);
转载于:https://www.cnblogs.com/asuran/p/7726905.html
标签:Salary,Top,Three,Employee,DepartmentId,Department,e1,e2 来源: https://blog.csdn.net/weixin_34162228/article/details/94140066