Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 353 Bytes

1978. Employees Whose Manager Left the Company.md

File metadata and controls

12 lines (11 loc) · 353 Bytes

1978. Employees Whose Manager Left the Company

Question Link

Solution

# Write your MySQL query statement below
select e1.employee_id from Employees e1
where e1.salary < 30000 and e1.manager_id not in (
  select employee_id from Employees
)
order by employee_id