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
How can you fetch first 5 characters of the string?
Which kind of parameters cannot have a default value in pl sql?
Explain raise_application_error.
How many disk partitions should I have?
How do you remove duplicates without using distinct in sql?
What is sql and explain its components?
Is it possible to create the following trigger: before or after update trigger for each row?
How many sql statements are used?
Does a join table need a primary key?
What is localdb mssqllocaldb?
What are stuff and replace function?
What does count (*) mean in sql?
What is the default isolation level in sql server? : Transact sql
what are the drivers in mysql? : Sql dba
what is a control file ? : Sql dba