i need department wise top 2 employees salary.which logic
i will use
Answer Posted / ramya p
select deptno, max(sal) from (select * from emp order by
sal desc)
where rownum < 3
group by deptno
order by max(sal) desc;
| Is This Answer Correct ? | 5 Yes | 12 No |
Post New Answer View All Answers
How can a pl sql block be executed?
What are the different dcl commands in sql?
What are different types of sql commands?
which operator is used in query for pattern matching? : Sql dba
Is sql a oracle?
How does sql store data?
How many commands are there in sql?
Is keyword pl sql?
how to get a list of indexes of an existing table? : Sql dba
What does trigger mean in slang?
Why are aggregate functions called so?
How many rows can sqlite handle?
what is data control language? : Sql dba
What is schema in sql example?
Does sql support programming?