欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

181超过经理收入的员工

程序员文章站 2022-03-13 21:26:07
...

181超过经理收入的员工

SELECT a.Name AS Employee FROM Employee AS a, Employee AS b
WHERE a.ManagerId = b.Id
and a.Salary > b.Salary
SELECT a.Name AS Employee FROM Employee AS a JOIN Employee AS b ON
a.ManagerId = b.Id
and a.Salary > b.Salary
相关标签: Leetcode SQL习题