Query for second maximum salary in each in each department
Answer Posted / yaswanth
select salary from(select salary,rownum rk from(select salary from employees order by salary desc)) ehere rk=2;
| Is This Answer Correct ? | 2 Yes | 13 No |
Post New Answer View All Answers
Define concurrency control. : Transact sql
What is the use of sqldataadapter?
What is the difference between delete and truncate statement in sql?
Does truncate need commit?
What is a common use of group by in sql?
What is difference between cursor and trigger?
What is the usage of when clause in trigger?
what is datawarehouse? : Sql dba
What is the current version of postgresql?
What is the difference between microsoft access and sql?
is it possible to pass an object or table to a procedure as an argument?
What is union?
What is the difference between truncate and drop statements?
what are the difference between clustered and a non-clustered index? : Sql dba
Can a table have no primary key?