how to retrieve the top 3 salaries of the table using rownum

Answer Posted / k.thrilok kumar

select rownum, sal from (select * from emp order by sal
desc) where rownum<=3

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 database migration?

521


Why do we use procedures in pl sql?

526


What is the trigger in sql?

542


What are the various levels of constraints?

670


How can you save or place your msg in a table?

525






how to escape special characters in sql statements? : Sql dba

518


Explain polymorphism in pl/sql.

641


How do I view a table in sql?

547


How do you delete a table?

540


How do you modify a trigger?

530


What are the string functions in sql?

531


What is secondary key?

513


What is primary key and unique key?

547


How do I enable sql encryption?

520


what does it mean to have quoted_identifier on? : Sql dba

681