Interview Questions   Tutorials   Discussions   Programs   

Cognos - Write a SQL query which should fetch the 5th maximum salary of an employee from the table?




496
views
asked mar September 30, 2014 11:43 AM  

Write a SQL query which should fetch the 5th maximum salary of an employee from the table?


           

1 Answers



 
answered By vishnoiprem   0  
SELECT
*
FROM
EMP
QUALIFY
ROW_NUMBER() OVER ( ORDER BY sal DESC )=5
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert