SQL practice › Subqueries
Second Highest Salary
Medium · Subqueries
Return a single value: the second highest salary in the company.
Hint
The highest salary that is smaller than the maximum.
Write your query on this page — it runs against the sample company database in your browser and is checked instantly.
Next problem: Earning More Than Their Manager