Write query to fetch second maximum salary from employee table.

Answer Posted / santosh kumar

select * from(select rownum r,ename,sal from(select * from emp order by sal desc))where r=2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)

1801


How do you tell what your machine name is and what is its IP address?

1510


How to omit columns with default values in insert statement in oracle?

573


What is index in Oracle?

584


what is the need of indexing topic in oracle? where do we use in a Java project? any other option other than using this to get the same result where we use indexing ?

2041






How to create a new table in oracle?

586


Where is the export dump file located?

565


Can a formula column be obtained through a select statement ?

1843


How to get execution path reports on query statements?

553


How to invoke the data pump import utility?

646


How to create a table interactively?

550


What do you mean by redo log file mirroring?

549


Why packages are used in oracle?

533


How much memory your 10g xe server is using?

578


How to define an anonymous block?

612