find out the third highest salary?

Answer Posted / anirban mitra

SELECT MAX(SAL) FROM EMP WHERE SAL NOT IN (SELECT MAX(SAL)
FROM EMP UNION SELECT MAX(SAL) FROM EMP WHERE SAL NOT IN
(SELECT MAX(SAL) FROM EMP))

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can sub procedure/function be called recursively?

534


what's query optimization and without use of IN AND Exist can we get another way data from query

1661


What is archive log in Oracle?

595


what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

1844


what is the need of indexing topic in oracle? where do we use in a Java project? any other option other than using this to get the same result where we use indexing ?

2042






How to initialize variables with default values?

634


How to rollback the current transaction in oracle?

538


Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

641


What is the difference between substr and instr?

517


In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?

1921


We are using Oracle apps with XML publisher.In that,we are facing some problems while giving a Footer in RTF Template.While giving a footer in RTF Template it is Visible in all the pages,but after the PDF is getiing generated,the Footer are Visible on alternate pages only (like on first page ,third page) and so on. Please provide the Solution for getting the Footer on all the pages.

4930


What is a data dictionary and how can it be created?

613


What is the difference between Delete, Truncate and Drop in Oracle?

602


Give the various rollback segment states.

577


Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

1581