i have used a query to get the second max from a list of sal like this:-
select sal from emptab where empid in (2,4,7) and rownum = 2 order by sal desc;
the problem is that the rownum is not working, can anyone suggest how to get second max value from a list of values?