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

Answer Posted / manivasan.s.,

select salary from salary_table
where rownum <4
order by salary desc

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the operators in sql?

533


Is primary key always clustered index?

541


Explain the working of primary key?

614


Can you select everything, but 1 or 2 fields, without writer's cramp?

502


what is the difference between group by and order by in sql? : Sql dba

600






What is delimiter in pl sql?

584


What are stored procedures in mysql?

569


what is a control file ? : Sql dba

581


How does rowid help in running a query faster?

970


what is oracle database ? : Sql dba

562


What is varchar used for?

540


What is rank dense_rank and partition in sql?

541


What is full form of rtm?

535


What are sql procedures?

586


Can cursors be part of a trigger body?

1122