Skip to content

Instantly share code, notes, and snippets.

@farindra
Created May 12, 2019 09:56
Show Gist options
  • Save farindra/46825423c951a17c7edc3b37dbb9de5c to your computer and use it in GitHub Desktop.
Save farindra/46825423c951a17c7edc3b37dbb9de5c to your computer and use it in GitHub Desktop.
BE_SQL #2
-- 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