find the third highest salary?

Answer Posted / chandra sekhar

SELECT * FROM EMP e
where 3=(select count(*) from emp
where e.sal<=sal)

Using this correlated subquery we can easily get any one

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert in sql function?

559


How can I tell if sql is running?

600


what is a stored procedure? : Sql dba

569


Explain what is a view?

610


What will you get by the cursor attribute sql%notfound?

601






How to run sql statements with oracle sql developer?

631


Explain polymorphism in pl/sql.

649


What are the usages of sql?

574


Define commit, rollback and savepoint?

586


What is the difference between the conventional and direct path loads? : aql loader

702


What is latest version of sql?

534


What is pl sql in dbms?

510


Is sql a scripting language?

529


What is tuple in sql?

549


How many aggregate functions are available there in sql?

536