184. Department Highest Salary

Posted yuesi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了184. Department Highest Salary相关的知识,希望对你有一定的参考价值。


SELECT d.Name AS Department,e.Name AS Employee,e.Salary AS Salary
FROM Department d,Employee e,
(SELECT MAX(Salary) AS Salary,DepartmentId FROM Employee GROUP BY DepartmentId) m
WHERE d.Id = e.DepartmentId AND e.Salary = m.Salary AND e.DepartmentId = m.DepartmentId;





以上是关于184. Department Highest Salary的主要内容,如果未能解决你的问题,请参考以下文章

184. Department Highest Salary

184. Department Highest Salary

[LeetCode] Department Highest Salary -- 数据库知识(mysql)

[LeetCode]-DataBase-Department Highest Salary

[LeetCode]Department Highest Salary,解题报告

[LeetCode]Department Highest Salary,解题报告