LeetCode-数据库181.超过经理收入的员工

题目描述在连接 LeetCode-181.超过经理收入的员工web 本题要找到收入高于本身经理的员工,因为全部信息都在同一张表中,所以为表赋别名进行自身的联表查询sql 解法一: select a.Name as Employee from Employee a where a.Salary>(select Salary from Employee b where a.ManagerId=b.Id
相关文章
相关标签/搜索