Skip to content

Instantly share code, notes, and snippets.

@thorvn
Created June 8, 2017 14:04
Show Gist options
  • Save thorvn/aeebc3a9108b27ed35cac8b6e5005ca3 to your computer and use it in GitHub Desktop.
Save thorvn/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