This technical problem asks the reader to write a SQL query to find the second highest salary from a given table of employees. An example table is provided, along with the expected output.
The solution above is optimal because it uses a subquery to find the maximum salary and then uses that value to find the second highest salary.
Evaluated at: 2022-11-26 06:16:18