how to retrieve the top 3 salaries of the table using rownum
Answer Posted / nitesh
select sal from emp e where 3>=(select count(distinct sal)
from emp where sal>e.sal) order by sal desc;
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
List the various privileges that a user can grant to another user?
What is oracle and pl sql?
What is the difference between clustered and non-clustered index in sql?
How do you respond to dementia behavior?
List different type of expressions with the example.
What do you understand by pl/sql records?
How does cross join work in sql?
What is the basic structure of an sql?
What are local and global variables and their differences?
What is row_number () in sql?
How to create your own reports in sql developer?
What are reports usually used for?
what is the difference between clustered and non clustered index in sql? : Sql dba
Can one improve the performance of sql*loader? : aql loader
what is the difference between ereg_replace() and eregi_replace()? : Sql dba