A solution using IN subquery


  • 0
    T
    SELECT e1.Name as Employee FROM Employee e1 WHERE ManagerId IN (SELECT Id FROM Employee e2 WHERE e1.Salary > e2.Salary )
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.