SQL: Second Highest Salary

Medium
SQL — Subqueries SQL Subquery LIMIT
Find the second highest salary.

Constraints

Write standard SQL (MySQL 8.0 compatible).

Examples

Example 1:
Input: salary 100 200 300
Output:
Example 2:
Input: salary 100 200 300
Output:

Hints

Use subquery or LIMIT/OFFSET.
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.