i need department wise top 2 employees salary.which logic
i will use
Answer Posted / vikas kapoor
select deptno,sal from
(select deptno,sal,row_number() over(partition by deptno orderby sal) r from emp ) where r<3
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain primary keys and auto increment fields in mysql : sql dba
Does truncate need commit?
What is the purpose of a sql?
How to run sql commands in sql*plus?
Can we use commit inside a trigger?
What is sql procedures and functions?
what are the advantages a stored procedure? : Sql dba
Can you call pl/sql package functions from within a fast formula?
what are aggregate and scalar functions? : Sql dba
In pl/sql, what is bulk binding, and when/how would it help performance?
Explain the components of sql?
What is the advantage of nosql?
Explain character-manipulation functions?
Is sql procedural language?
difference between anonymous blocks and sub-programs.