Skip to content

Instantly share code, notes, and snippets.

@yohangdev
Created January 17, 2019 08:50
Show Gist options
  • Save yohangdev/6723cfdd492ab4f62d63e1a5963c18ce to your computer and use it in GitHub Desktop.
Save yohangdev/6723cfdd492ab4f62d63e1a5963c18ce to your computer and use it in GitHub Desktop.
SQL #2 - Workers
SELECT a.name FROM employees a WHERE a.id NOT IN (SELECT b.managerId FROM employees b WHERE b.managerId IS NOT NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment