9 lines
131 B
SQL

SELECT
e.name AS "Employee"
FROM
Employee e
INNER JOIN
Employee m ON e.managerId = m.id
WHERE
e.salary > m.salary;