Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / tejasvita dhuri
select id,salary from (select id,salary,ROW_NUMBER()over (order by salary desc) as rowcol from emp)A
where A.rowcol=2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of stored procedure?
Is sql between inclusive?
Is full outer join same as cross join?
what are the differences between require and include, include_once and require_once? : Sql dba
What is the difference between explicit and implicit cursors in oracle?
What is a unique key?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
What are the different types of triggers?
what is uncommittable transactions? : Transact sql
What are the set operators in sql?
What is using in sql?
what is a scheduled jobs or what is a scheduled tasks? : Sql dba
discuss about myisam index statistics collection. : Sql dba
What is spool?
Define union, minus, union all, intersect ?