문제
정답
SELECT name AS Employee
FROM (
SELECT E1.name, E1.salary, E2.salary AS managerSalary
FROM Employee AS E1
LEFT JOIN Employee AS E2 ON E1.managerId = E2.id
) AS E
WHERE salary > managerSalary
SELECT name AS Employee
FROM (
SELECT E1.name, E1.salary, E2.salary AS managerSalary
FROM Employee AS E1
LEFT JOIN Employee AS E2 ON E1.managerId = E2.id
) AS E
WHERE salary > managerSalary