Anybody can tell me, how do we find second largest emp
salary from emp table.. Thanks in advance ...

Answer Posted / samad

Dear
here i am sending new ans u can give the value in parameter

SELECT SAL,NO FROM(
SELECT SAL ,ROWNUM NO FROM
(SELECT DISTINCT SAL FROM EMP ORDER BY SAL DESC)) WHERE NO=:N


Regards,

Samad

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle data type?

555


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

4020


How to create a table index?

568


What privilege is needed for a user to delete rows from tables in another schema?

562


Explain the use of Merge statement in oracle 11g

596






Is postgres faster than oracle?

561


Describe the types of sub query?

555


How to retrieve the count of updated rows?

576


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

596


How to load excel data sheet to oracle database

586


is there a tool to trace queries, like profiler for sql server?

606


What is the fastest query method to fetch data from the table?

864


How to unlock the sample user account in oracle?

558


What is an oracle and why it is used?

623


What is oracle latest version?

583