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

Answer Posted / vik

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

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the 'mysql' command line options? : Sql dba

560


Does truncate remove indexes?

563


Which software is used for pl sql programming?

524


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1391


What is mutating error in pl sql?

553






What is memory optimized table?

577


What is cte?

576


What is sql and also describe types of sql statements?

567


Can a procedure in a package be overloaded?

549


How exception is different from error?

545


what is a field in a database ? : Sql dba

547


define data blocks ? : Sql dba

552


how to convert dates to character strings? : Sql dba

539


Why is nosql good?

599


How to create an array in pl/sql?

585