Find out the 3rd highest salary?

Answer Posted / ajay kumar

SELECT DISTINCT SAL FROM EMP WHERE SAL = (SELECT DISTINCT
SAL FROM EMP X WHERE &N= (SELECT COUNT(DISTINCT SAL) FROM
EMP Y WHERE Y.SAL>X.SAL))
/
AFTER RUNNING THE QUERY PUT THE VALUE OF N

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are subqueries better than joins?

724


what are string data types? : Sql dba

710


Which join is like inner join?

769


What is the difference between microsoft access and sql?

738


How to start oracle sql developer?

764


What is coalesce sql?

711


How do you modify a table in sql?

816


how to fetch common records from two tables? : Sql dba

851


How many functions are there in sql?

731


What are conditional predicates?

798


What are the different dcl commands in sql?

775


how many columns can be used for creating index? : Sql dba

681


What are sql indexes?

742


Explain exception handling in pl/sql?

748


How can we store rows in PL/SQL using array?

893