+----+-------+--------+-----------+
| Id | Name | Salary | ManagerId |
+----+-------+--------+-----------+
| 1 | Joe | 70000 | 3 |
| 2 | Henry | 80000 | 4 |
| 3 | Sam | 60000 | NULL |
| 4 | Max | 90000 | NULL |
+----+-------+--------+-----------+
+----------+
| Employee |
+----------+
| Joe |
+----------+
select a.Name Employee
from Employee a left join Employee b on a.ManagerId = b.Id
where a.Salary > b.Salary