i need department wise top 2 employees salary.which logic
i will use
Answer Posted / ramya p
Select * from emp where sal in
(Select * From (Select sal from emp order by sal desc)
Where rownum < 3) order by sal desc;
Is This Answer Correct ? | 6 Yes | 18 No |
Post New Answer View All Answers
Which function is used to return remainder in a division operator in sql?
Which constraints we can use while creating database in sql?
How does postgresql compare to "nosql"?
what is collation? : Sql dba
Is it possible to update views?
What operators deal with null?
What is the usage of nvl function?
Can we group by two columns in sql?
What is clustered index sql?
Are stored procedures faster than dynamic sql?
How many columns should be in an index?
Why is sql better than hql?
what is 'mysqlshow'? : Sql dba
Can we use delete in merge statement?
Is subquery faster than join?