본문 바로가기

IT/코딩테스트

[Leetcode] 1978. Employees Whose Manager Left the Company

728x90

https://leetcode.com/problems/employees-whose-manager-left-the-company/

SELECT employee_id FROM Employees
WHERE 
  salary < 30000 
AND 
  manager_id NOT IN (SELECT employee_id FROM Employees)
ORDER BY employee_id ASC;
728x90