Getting everything ready for you…

Loading courses, problems and your progress. This takes just a moment.

0s

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