What is the sql query to find the employee who has Nth
maximum salary?

Answer Posted / naresh

Select * From TableName T1 Where
(N-1) = (Select Count(Distinct(E2.ColumnName))
From TableName T2 Where T2.ColumnName > T1.ColumnName)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are These Dff's Flexible?

732


Where in the Oracle directory tree structure are audit traces placed?

2122


HOW TO SPOT AHIERARCHY?

1847


Explain the use of table functions.

1795


Explain the difference between $ORACLE_HOME and $ORACLE_BASE.

6735






how to write customizations in po

1195


I've got a database 10g and Form version 5.0 but unable to connect. Does Oracle 10g database supports form 4.5

2051


Explain the process of recievables in oracle financials. : oracle accounts receivable

656


Which is the best institute in Hyderabad to learn OBIEE and DataStage?Please tell me faculty name also

1838


can we use lexical perameter in oracle plsql if yes how

1824


What is the difference between conversions and interfaces? : oracle accounts receivable

648


What is the importance of batch source set up in ar? : oracle accounts receivable

714


what are the API of GL,PO,AP

1772


How do you create a credit note against an invoice? : oracle accounts receivable

644


as a technical developer in oracle applications which type errors feced in your experience sofar

1905