Skip to content

Instantly share code, notes, and snippets.

@ahikmatf
Created May 16, 2019 07:48
Show Gist options
  • Save ahikmatf/360653b8422f868de43f30047e5a178f to your computer and use it in GitHub Desktop.
Save ahikmatf/360653b8422f868de43f30047e5a178f 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