how to find the n'th highest salary from emp ?

Answer Posted / brajesh kumar

SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT
(DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal);

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give syntax for SQL and ORACLE joins.

636


In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.

1470


What are the attributes of cursor?

589


What are the different types of record groups in oracle? Explain each of them

605


What is the max number of columns in an oracle table?

516






What is merge in oracle?

561


Name the three major set of files on disk that compose a database in Oracle?

635


How do you find current date and time in oracle?

590


I have some query regarding Report generation from Oracle Apps "PO module". I have to generate a report where table columns are as below: Vendor_name Invoice No PO Number Item_Quantity Value of Goods Date of Shipping Name_of_the_transport Date_of_receipt_issued. Now my questions is :from which table/column I can get the information of "Name_of_the_transport" column. Thanks in advance.

2888


What is recovery manager in Oracle?

591


What are the most common interview questions on ETL Testing for experience?

597


how to convert .db (extention) database file into .dmp (extention ) for oracle database ?

2067


Explain mutating triggers.

576


What is the difference between view and materialized view in Oracle?

610


How to convert numbers to characters in oracle?

590