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
Can we insert data in view?
how many values can the set function of mysql take? : Sql dba
What is a sql*loader control file?
Can a foreign key be null?
Is mariadb nosql?
What is the size of partition table?
How do I run pl sql in sql developer?
What is dense_rank?
Why does sql need a server?
Does view store data in sql?
What is normalization in sql?
What is a sql driver?
Where the sql database files are stored?
what happens if you no create privilege in a database? : Sql dba
What are the syntax and use of the coalesce function?