how to get second highest sal of emp table

Answer Posted / amit bhagat

select min(a.sal) from (select disctinct d.sal from emp d
order by sal desc) a where rownum<=2

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 normalisation?what are its uses?

1756


Explain about functional dependency and its relation with table design?

550


How to get execution statistics reports on query statements?

567


How to change user password in oracle?

603


What is the difference between view and materialized view in Oracle?

603






What is ADDM Advisor in Oracle?

656


How to define an anonymous procedure with variables?

543


How can we delete duplicate rows in a table?

560


How does the on-delete-cascade statement work?

604


What is the difference between I and G in Oracle?

601


How can you merge two tables in oracle?

565


Which is better Oracle or MS SQL? Why?

3967


What is the simplest tool to run commands on oracle servers?

511


what happened to the global index when I truncate the data in one of the partition?

1515


Explain cascading triggers.

572