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

Answer Posted / karthik murugeshan

SELECT B.Salary FROM (SELECT Salary FROM EMP)A,(SELECT
Salary FROM EMP)B
WHERE A.Salary>=B.Salary
GROUP BY B.Salary
HAVING COUNT(B.Salary)=5

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define metrics studio?

592


What is the difference between the standard and metrics folder?

513


How can I schedule reports in cognos?

610


How can we Maintain the Cube Security by Category level and Dimension level ?

1967


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

2769






can anyone provide link to download cognos 7.2 version for download along wiht installation and configuration steps tx in advance

1882


Cognos Online Training will be provided. prior training with all real time aspects. Comprehensive training will be given in Datawarehousing concepts , cognos 8.4 and cognos 10 versions. Contact kris.cognos25@gmail.com

1635


how to merge 2 crosstabs thans

2172


What is drill down and slicing and dicing whats the difference between them?

553


What is meant by junk dimension?

583


hi..i'm searching on cognos.i want to know some real time explanation..persons who have real time exp and who r searching in this field..can u send ur mail-id..my mail-id is dhaanuus@gmail.com..hope u will respond as soon as possible..

1469


What is Fullouterjoin?

1563


Define query studio?

602


Write some methods to apply securities in framework manager model?

663


how you create security to reports?

609