find out the third highest salary?

Answer Posted / deepal saini

this is the best way to find out thethird highest salary from emp table

select max(sal) from emp where sal<(select max(sal) from emp where sal <(select max(sal)from emp));

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a relational database management system?

674


Explain compound trigger in oracle?

546


How would you change old and new values in an insert, delete and update triggers?

541


21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.

1620


How to retrieve the count of updated rows?

572






What is a nested table?

628


Explain a private synonyms?

632


How to define a data field as not null?

631


What are the set operators union, union all, minus & intersect meant to do?

562


What is a snapshot log?

564


What is control file used for?

602


What are data pump export and import modes?

609


What is oracle used for?

534


What privilege is needed for a user to create indexes in oracle?

574


What is oracle latest version?

579