i need department wise top 2 employees salary.which logic
i will use
Answer Posted / mukesh kumar
SELECT * FROM (SELECT NAME,SALARY FROM EMP ORDER BY SALARY
DESC)
WHERE ROWNUM < 3
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
how to check myisam tables for errors? : Sql dba
What are sql functions? Describe the different types of sql functions?
How can a function retun more than one value in oracle with proper example?
What is the purpose of a sql?
what is timestamp in mysql? : Sql dba
Is it possible for a table to have more than one foreign key?
How subquery works in sql?
What is cost in sql execution plan?
What is sql partition function?
What are triggers and its types?
What is a rank in sql?
What is the starting oracle error number? What is meant by forward declaration in functions?
Why is a trigger used?
what is 'mysqladmin' in mysql? : Sql dba
What is the trigger in sql?