[SQL] 181. Employees Earning More Than Their Managers

써니·2023년 7월 28일

SQL

목록 보기
2/2

문제:

https://leetcode.com/problems/employees-earning-more-than-their-managers/

풀이:

select a.name as Employee
from Employee a
left join Employee b
    on a.managerId = b.id
where a.salary > b.salary
profile
반가워요!

0개의 댓글