second_highest_salary.sql
DuckDB 1.5
Not run yet
+ 5 hidden
Input
employee id salary 1 100 2 200 3 300
Expected
[{"SecondHighestSalary": 200}]The distinct salaries are 100, 200 and 300; the second highest is 200.