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 happens if you set the sga too low in oracle?

775


What are the extensions used by oracle reports?

760


How can I combine multiple rows into a comma-delimited list in oracle?

776


What are the different types of trigger and explain its various uses and functions?

727


What are a query and state the different types of queries and their uses?

721






Please explain oracle left join with an example?

750


Why we use bulk collect in oracle?

708


What is a dynamic performance view in oracle?

766


What is the string concatenation operator in oracle?

768


Why do you use stored procedures and state some of its disadvantages?

773


What is a cursor in oracle?

812


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

1691


What is a package ? What are the advantages of package ?

792


What are the advantages of oracle?

742


What view(s) do you use to associate a users SQLPLUS session with his o/s process?

2114