+----------+
这题用的是self join 的方法 选出 ManagerID 再将Salary作为比较条件即可得到答案。
# Write your MySQL query statement below SELECT A.Name From Employee A,Employee B WHERE A.ManagerId=B.Id and A.Salary>B.Salary
Employees Earning More Than Their Managers Leetcode SQL
原文地址:http://blog.csdn.net/hyperbolechi/article/details/42775793