find out the third highest salary?

Answer Posted / ajit

SQL QUERIES FOR FINDING Nth HIGHEST SALARY

SELECT DISTINCT (a.salary) FROM EMPLOYEES A WHERE &N = (SELECT COUNT (DISTINCT (b.salary)) FROM EMPLOYEES B WHERE a.salary<=b.salary);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a trigger and what are its types?

614


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

1646


what is the scripts in data base?

1602


What is a sub query? What are its various types?

583


What is a package in oracle?

562






Can a parameter be passed to a cursor?

600


Explain the use of compress option in exp command.

548


What is oracle thin client?

536


How to drop an existing table in oracle?

592


I have a parent program and a child program. I want to write a statement in Exception Block of the parent program so that when the statement in the exception block is executed, the control goes to the next statement in the parent block bypassing the child block.How do i do that?

1970


 What are the oracle DML commands possible through an update strategy?

581


What is oracle update statement with inner join ?

580


How to create a new view in oracle?

617


How to compare dates in oracle sql?

651


What is a connect identifier?

540