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
What is sql query optimization?
Is not equal in sql?
What is difference between pls_integer and integer?
name 3 ways to get an accurate count of the number of records in a table? : Sql dba
Can variables be used in sql statements?
What are the different types of tables in sql?
Which is faster truncate or drop?
How many sql core licenses do I need?
What are operators available in sql?
What is meant by temporal data?
What is the use of function "module procedure" in pl/sql?
How to know the last executed procedure?
What are the advantages of normalization?
What are the different operators available in sql?
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?