You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT employee_id FROM (SELECT*FROM Employees e1 WHEREe1.manager_idIS NOT NULLGROUP BYe1.employee_idHAVING (SELECTe2.employee_idFROM Employees e2 WHEREe2.employee_id=e1.manager_id) IS NULL) e3 WHERE salary <30000ORDER BY employee_id;