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

Answer Posted / rameshwar gupta

select ename ,sal from (select ename,sal from emp order
by sal desc)
where rownum<4

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use view in stored procedure?

698


what is normalization? : Sql dba

737


Does postgresql run on the cloud?

798


What are field types?

727


When can we use the where clause and the having clause?

776






What is primary and foreign key?

804


how to get a list of columns in an existing table? : Sql dba

709


What are different types of functions in sql?

723


How can we store rows in PL/SQL using array?

882


What programs use sql?

728


what is offset-fetch filter in tsql? : Transact sql

713


How can triggers be used for the table auditing?

751


What is join view in sql?

697


how would you get the current date in mysql? : Sql dba

723


What is compilation error in pl sql?

695