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

Answer Posted / ashwinee

select empnumber
from emp
where rownmum < 4 and salary in (select salary
from emp
order by salary desc)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does oracle use sql?

517


Describe sql comments?

565


What is a heap in sql?

531


What is the command used to fetch first 5 characters of the string?

889


what is a constraint? : Sql dba

715






How to test for null values?

608


how to include character strings in sql statements? : Sql dba

556


If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????

3550


Why cross join is used?

637


What is varchar example?

578


what is sp_pkeys? : Transact sql

703


Is sql pronounced sequel or sql?

749


What is cross join sql?

504


What is nvarchar in sql?

525


What schema means?

529