Here is my solution


  • 0
    A
    select Name
    from Employee E1
    where exists (select *
                 from Employee E2
                 where E2.Id = E1.ManagerId and
                 E1.Salary > E2.Salary);

Log in to reply
 

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