i need department wise top 2 employees salary.which logic
i will use
Answer Posted / naresh anumolu
SELECT * FROM(SELECT *,DENSE_RANK() OVER(PARTITION BY DEPTNO ORDER BY SAL DESC) AS RANK FROM EMP)A WHERE RANK<3
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How many postgresql users are there, worldwide?
What are the different schemas objects that can be created using pl/sql?
What is the meaning of disabling a trigger?
What is an exception in pl/sql?
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
Why triggers are used?
What is pivot table in sql?
how can we destroy the cookie? : Sql dba
Why do we use partitions in sql?
Why use subqueries instead of joins?
What is scalar function?
What is union, minus and interact commands?
What does where 1/2 mean in sql?
How many tables can a sql database have?
How much does sql certification cost?