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

How to get a create statement for an existing table?

572


What is transport network substrate (tns) in oracle?

589


What is an oracle tablespace?

608


Explain about your project and its relation to the current job position you are applying to?

546


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

570






How to drop an existing view in oracle?

571


What are the execution control statements in oracle?

606


How to Truncate Table in Oracle

657


How to use values from other tables in update statements using oracle?

568


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.

1652


How do I uninstall oracle client from windows?

538


How to save query output to a local file?

563


Why oracle is used?

581


How to export data with a field delimiter?

582


How to do paging with oracle?

576