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

What are types of joins?

538


What is snowflake sql?

582


How to run pl/sql statements in sql*plus?

594


explain what is mysql? : Sql dba

600


What is sql architecture?

561






Why we use cross join?

543


How to connect a sql*plus session to an oracle server?

623


Which query operators in sql is used for pattern matching?

546


What are the types of functions in sql?

569


What is primary and foreign key?

593


What are the syntax and use of the coalesce function?

553


What is auto increment?

582


What is sql procedures and functions?

531


What is sql lookup?

513


What if we write return in procedure?

788