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

Answer Posted / ram

Select * from emp
where emp.salary in (select emp.salary from emp
where (select distict salary
from emp order by desc null last)
where rownum <=3);

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews

1529


What is a temporal data type?

599


How do you add a column to a table?

604


How many joins can you have in sql?

524


How do I quit sql?

502






What does the file extension accdb stand for?

549


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

561


What are functions in sql?

512


Is keyword pl sql?

562


What are the differences between in and exists clause?

571


How do I trace sql profiler?

493


What is sql in java?

547


Why do we use function in pl sql?

561


What is string join?

559


What is on delete restrict?

544