LeetCode SQL:Employees Earning More Than Their Managers

# Write your MySQL query statement below
SELECT a.Name FROM Employee AS a
INNER JOIN Employee AS b ON a.ManagerId = b.Id
WHERE a.Salary > b.Salary

让我来看看讨论区,并没有发现更好的

posted @ 2015-05-22 01:01  卖程序的小歪  阅读(150)  评论(0编辑  收藏  举报