View Single Post

  #7 (permalink)  
Old 05-04-2008, 10:13 AM
gouthami1970 gouthami1970 is offline
Junior Member
 
Join Date: May 2008
Posts: 5
gouthami1970 is on a distinguished road
Perform TOP N ANALYSIS

HI vaibhav Top n analysis is used for knowing the top most ranks.The syntax goes like this modify acc to ur reqirement.

select Rownum as rank,E.* from (select * from emp order by sal desc) where rownum<=2;

Gouthami



Quote:
Originally Posted by chandraismoon View Post
Hi all
I want to display the entire row of the employee who is havong second highest sal

can any one help me

Vaibhav
Reply With Quote