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

Answer Posted / akki julak

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

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is restrict in sql?

740


What are the benefits of pl sql?

765


Are sql database names case sensitive?

685


What is set transaction?

763


Why do we need databases?

730






How do you pronounce sql?

726


How do you write a subquery?

692


What is the difference between truncate and drop statements?

763


What is a behavioral trigger?

692


what is innodb? : Sql dba

761


how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc

3578


How do I access sql anywhere database?

671


What is on delete set null?

763


What are all the common sql functions?

751


Explain locks? : Transact sql

738