Skip to content

Instantly share code, notes, and snippets.

@dikiwidia
Created May 14, 2019 16:59
Show Gist options
  • Save dikiwidia/3d1364f196e4ede7ddec8e88c82161c5 to your computer and use it in GitHub Desktop.
Save dikiwidia/3d1364f196e4ede7ddec8e88c82161c5 to your computer and use it in GitHub Desktop.
-- Write only the SQL statement that solves the problem and nothing else.
SELECT name FROM employees
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment