find out the third highest salary?

Answer Posted / santanu

3rd highest salary:

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

How many types of auditing in Oracle?

571


How to use attributes of the implicit cursor in oracle?

565


How to define an explicit cursor in oracle?

604


What is Segment Advisor in Oracle?

674


How to speed up webrick?

601






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?

1978


How to do clean up if create database failed?

576


What is connection pooling in oracle?

552


What is archive log in Oracle?

605


What is memory advisor in Oracle?

639


What is a nvl function?

566


What are the uses of Database Trigger ?

1107


What is the difference between a primary key & a unique key?

590


Name the three major set of files on disk that compose a database in Oracle?

637


Write a trigger example in oracle?

577