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

1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

2161


what are aggregate and scalar functions? : Sql dba

729


what is datawarehouse? : Sql dba

749


what is the difference between char_length and length? : Sql dba

783


What are the differences between in and exists clause?

781






What are the different parts of a package?

805


Is sqlite thread safe?

782


What is the difference between function and procedure in pl/sql?

741


How to start oracle sql developer?

748


Why we use pl sql?

701


What is foreign key sql?

739


What is the requirement of self-join?

735


What is sql stand for?

738


What is a relationship and what are they?

778


How do I delete a trigger?

721