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

What do you mean by merge in oracle and how can we merge two tables?

563


How to create a stored procedure in oracle?

565


What is data type in oracle?

549


What is the relation of a user account and a schema in oracle?

572


Explain index?

725






What are the tools for Oracle ?

588


Can we connect to ORACLE db using Windows Authentication?

705


Does oracle partitioning improve performance?

538


How to delete multiple rows from a table in oracle?

549


What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?

1507


What is raw datatype in oracle?

570


What is data file?

600


Why does oracle 9i treat an empty string as null?

526


What happens if recursive calls get out of control?

537


How to export data to a csv file?

606