Friday 19 March 2010

nth Highest Salary

--nth Highest Salary

select min(Emp_Sal) from Employee_Test where Emp_Sal in(select distinct top n Emp_Sal from Employee_Test order by Emp_Sal desc)