Skip to content

Instantly share code, notes, and snippets.

@atyahyde
Created January 20, 2019 06:15
Show Gist options
  • Save atyahyde/28bb2687a45b26b5731e9c9b4d8d20ec to your computer and use it in GitHub Desktop.
Save atyahyde/28bb2687a45b26b5731e9c9b4d8d20ec 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