select MAX(Salary) from Employees WHERE Salary <> (select MAX(Salary) from Employees) -- works with any version Select * From Employees -- For Sql Server 2012 only... Order by Salary Desc Offset 1 Rows Fetch Next 1 Rows only;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)