View Single Post

  #4 (permalink)  
Old 10-31-2007, 02:41 AM
karthigayini karthigayini is offline
Junior Member
 
Join Date: Sep 2007
Posts: 2
karthigayini is on a distinguished road
use a simple logic
1st find the max sal of entire table
2nd list all sal less than max sal
3rd from that list find the max

select * from table where salary>(select salary from table where salary <max(salary))
Reply With Quote