181. Employees Earning More Than Their Managers(SQL)

# Easy

# Write your MySQL query statement below
select e2.Name Employee 
from Employee e1, Employee e2 
where e1.Id = e2.ManagerId and e2.Salary > e1.Salary;

# 暴力解法,加上所有的限制条件

Last updated

Was this helpful?