View Single Post
  #9 (permalink)  
Old 09-11-2007, 09:48 AM
Unregistered
 
Posts: n/a
Exclamation ANY answer. Re: How to find second highest value of a column in a table?

Second highest value could be find out by entering this command:-
Let say u want to find out salary(second highest) from employ table then..

[sql]SELECT MAX(SALARY) FROM EMPLOYEE WHERE SALARY NOT IN (SELECT MAX(SALARY) FROM EMPLOYEE)[/sql]


Regards,
Mohammed Obaid Khan
Pune, Maharashtra
India
Edit/Delete Message Reply With Quote