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 does sql developer connect to oracle database?
what is a field in a database ? : Sql dba
how can we optimize or increase the speed of a mysql select query? : Sql dba
What are the packages in pl sql?
What is sql analyzer?
what are the different tables present in mysql? : Sql dba
Does sql*plus also have a pl/sql engine?
Explain unique key in sql.
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
Explain what is a database?
How to disable a trigger name update_salary?
Can a table contain multiple primary key’s?
What is column?
How to add, remove, modify users using sql?
How to connect a sql*plus session to an oracle server?