leetcode刷题181

  • 题目描述
    leetcode刷题181_第1张图片
  • 解法代码
SELECT E1.Name AS Employee 
FROM Employee AS E1,Employee AS E2 
WHERE E1.ManagerId=E2.Id AND E1.Salary>E2.Salary;
  • SQL知识点
    自联结

你可能感兴趣的:(leetcode刷题181)