Answer Posted / sambu
select r.sal,r.rank,r.dept high from
(select deptno,sal,dense_rank() over (partition by deptno
order by sal desc) rank
from emp) r
where r.rank=3;
The above query gives the following result
DEPTNO SAL HIGHEST
------ ----- -------
10 1300 3
20 1100 3
30 1500 3
Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
Is it possible to update views?
How many commands are in sql?
Can you do multiple joins in sql?
What is use of term?
What is the purpose of primary key?
What are the three pl sql block types?
what is the difference between char and varchar data types? : Sql dba
What is the difference between the conventional and direct path loads? : aql loader
How to disable a trigger name update_salary?
How do I view a view in sql?
Does truncate table reset auto increment?
Can we join same table in sql?
what are date and time functions in mysql? : Sql dba
what is the difference between cluster and non cluster index? : Sql dba
What is sql stand for?