Skip to content

Instantly share code, notes, and snippets.

@revaldianggara
Last active August 6, 2021 06:56
Show Gist options
  • Save revaldianggara/29084e13f87129c239dfb090c367923d to your computer and use it in GitHub Desktop.
Save revaldianggara/29084e13f87129c239dfb090c367923d to your computer and use it in GitHub Desktop.
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