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 create table inside stored procedure?

532


What is the basic structure of an sql?

569


what is the difference between clustered and non clustered index in sql? : Sql dba

547


What is the difference between the sql*loader and import utilities? : aql loader

596


What is difference between hql and native sql?

577






Can a composite key be null?

525


Enlist the advantages of sql.

568


What is dml with example?

514


Where are my tempfiles, I don't see them in v$datafile or dba_data_file?

546


How does a covering index work?

526


What is indexing oracle sql?

560


What is the use of function in sql?

535


what is an alias command? : Sql dba

544


what is a primary key? : Sql dba

552


How many types of triggers are there in pl sql?

572