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

Answer Posted / chandrasekar.ramasamy

select sal from( select rownum,e.* from empmaster e order
by sal desc) where rownum < 4

Is This Answer Correct ?    20 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why use stored procedures?

582


Is drop table faster than truncate?

559


What is not equal in sql?

517


What is null in pl/sql?

628


What is bind variable in pl sql?

536






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

527


How do I view output in sql developer?

584


What is the need of a partition key?

541


What are literals in sql server?

544


what is 'mysqlcheck'? : Sql dba

577


what is the difference between myisam static and myisam dynamic? : Sql dba

590


Why do we use procedures in sql?

554


Is record in pl sql?

521


Does a join table need a primary key?

537


What are conditional predicates?

596