It\'s a question I got this afternoon:
There a table contains ID, Name, and Salary of Employees, get names of the second-highest salary employees, in SQL Server
Here's a simple approach:
select name from employee where salary=(select max(salary) from(select salary from employee minus select max(salary) from employee));