Skip to content

Instantly share code, notes, and snippets.

@th0j
Created June 8, 2017 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save th0j/aeebc3a9108b27ed35cac8b6e5005ca3 to your computer and use it in GitHub Desktop.
Save th0j/aeebc3a9108b27ed35cac8b6e5005ca3 to your computer and use it in GitHub Desktop.
find_second_salary.sql
select MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) from Employee);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment