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
How do I pipe the output of one isql to another?
Why coalesce is used in sql?
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
What is a column in a table?
What is field delimiter?
What is java sql driver?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
Can we use distinct and group by together?
What do you mean by “trigger” in sql?
What found sql?
What is spool?
What is primary key and foreign key with example?
Does user triggers have entry for trigger with compilation errors?
How do you write a subquery?
How many subqueries can be nested in a statement?