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
How is data stored in sql?
How you improve the performance of sql*loader? : aql loader
Can we update views in sql?
What is the difference between drop and truncate commands?
What is sql keyword?
Explian rowid, rownum? What are the psoducolumns we have?
What is mutating trigger?
What is oracle and pl sql?
Is id a reserved word in sql?
What are different functions in sql?
what is acid property in database? : Sql dba
Define union, minus, union all, intersect ?
What is the difference between inner join and left join?
What is rownum in sql?
Is sql developer case sensitive?