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 different sql commands?
Is not null in sql?
What is the difference between inner join and natural join?
what does myisamchk do? : Sql dba
What is the use of nvl function?
Explain the difference between drop and truncate commands in sql?
What is group by in sql?
What are the triggers associated with image items?
what is sql server agent? : Sql dba
how to shut down the server with 'mysqladmin'? : Sql dba
What packages(if any) has oracle provided for use by developers?
What is sql in java?
When are we going to use truncate and delete?
Is primary key a clustered index?
Is join same as left join?