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

Answer Posted / hashmatulla baig

SELECT empno, sal
FROM
(
select empno, sal, ROW_number() OVER (order by sal desc) R
from emp
order by sal desc
)
WHERE R = 5;

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Transformer?

663


What is called Cognos powerplay?

628


WHAT ARE THE DISTNICT VARIABLES?

1761


tell me two or three issues from client side and how to solve those issues?

1715


Give the advantages of cognos?

588






what are the special features in cognos reportnet?

627


Cleared COG-112 with 100% score today. What next certification should i go for?

1431


What is a Folder?

701


What is a Cube?

702


---------------Tell me about DWH Concepts?

1622


Can you explain the advantage of using shortcuts?

625


What is the metric store database?

547


What is the difference between a cascading report and drillthru report? Why do we go for drill thru report?

556


hi all i am searching for cognos jobs pls inform about the jobs to:santosh.koora@gmail.com

1984


difference between impromptu and cognos8

1984