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

What are tables and fields in the database?

556


Why do we use subquery?

491


Which is faster view or stored procedure?

511


Are left and right joins the same?

541


What are character functions?

639






what is 'mysqld'? : Sql dba

550


Where is sql database stored?

525


What are the different types of sql commands?

606


What is coalesce in sql?

566


explain advantages of innodb over myisam. : Sql dba

652


What is snowflake sql?

584


How can you select unique records from a table?

526


What is update query?

551


what is error ora-03113: end-of-file on communication channel?

607


What is the difference between local variables and global variables?

622