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 is compiled query?
What is an intersect?
What is a primary key called that is made up of more than one field?
Is vs as in pl sql?
How do you declare a variable in pl sql?
explain the difference between myisam static and myisam dynamic. : Sql dba
Is sql free?
What is the difference between count 1 and count (*) in a sql query?
Show how functions and procedures are called in a pl/sql block.
Is t sql a programming language?
Can we use view in stored procedure?
What does pl sql developer do?
What does the hierarchical profiler does?
How do I view an execution plan in sql?
How do you optimize a query?