Skip to content

Instantly share code, notes, and snippets.

@UMU18
Created January 22, 2019 08:43
Show Gist options
  • Save UMU18/ff2fe4588267787f5a47de7ffd9f5197 to your computer and use it in GitHub Desktop.
Save UMU18/ff2fe4588267787f5a47de7ffd9f5197 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