View Single Post
  #10 (permalink)  
Old 09-27-2007, 04:52 PM
zubair_ahmed
 
Posts: n/a
Thumbs up ANY answer. Re: How to find second highest value of a column in a table?

make use of MINUS operator
supposing to find second highest sal from tablename(table)
ie [sql]select max(sal) from( select sal from tablename
MINUS
select max(sal) from tablename)[/sql]
Edit/Delete Message Reply With Quote