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
Why trigger is used in sql?
What is crud diagram?
how to check myisam tables for errors? : Sql dba
What is inner join in sql?
How to get help at the sql prompt?
i have some prob lem to tell me about my self in interview first round ...
What is trigger and stored procedure in sql?
Does postgresql run on the cloud?
Explain the working of foreign key?
What is difference between mysql and postgresql?
Define SQL and state the differences between SQL and other conventional programming Languages?
How do you delete data from a table?
Is delete faster than truncate?
What is sap sql?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba