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 cognos powerhouse?

674


What is Additive function?

1648


What errors and types of errors you faced in Cognos ReportNet?

3611


how to connect datamarts

2454


how u burst the reports? if u r bursted reports is not reached to destination how u identify???

10966






What are the methods by which it non-durable model could be changed into the durable model?

596


----------------Diff b/w Dimensional modeling and Relational modeling?

14107


How security is concerned with Reportnet? Explain its implementing steps.

1699


What is meant by alternate drill down with ex?

711


A product manager is analysing the sales made for each product, he has requested a report containing data for specific products. To do this we will create a report that includes a prompt page that filters on specific products within specific product subcategory and category.

1711


What are the steps to import the two data sources in framework manager?

690


How the Bursting happens in same report and how to Print the bursting Report?

1522


How to do Performence Tunning in Cognos Reports?

2149


hi this is bhaskar iam working in Tcs u want any real time faqs send me your qs i will ans that qs ok this is my id bhaskarparitala.rao@gmail.com

1696


-----------Diff b/w OLAP and RDBMS?

1727