View Single Post
  #26 (permalink)  
Old 05-20-2008, 11:00 AM
Vishal
 
Posts: n/a
Default ANY answer. Re: How to find second highest value of a column in a table?

to find the third highest row in a table (employee_test for e.g.)


[sql]select min(Emp_Sal) from Employee_Test where Emp_Sal in
(select distinct top 2 Emp_Sal from Employee_Test order by Emp_Sal desc)[/sql]


Vishal
Reply With Quote