Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / debasish sinha
select ename,sal,deptno
from emp
where sal =
(
select max(sal)
from emp
where level=2
connect by prior sal>sal
group by level
)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is record in pl sql?
What is dynamic query?
What is procedure in pl sql?
Can we rollback after truncate?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
How do I edit a stored procedure?
which tcp/ip port does sql server run on? : Sql dba
What are all the different normalization?
Are null values same as that of zero or a blank space?
What is the purpose of a sql?
how to fetch alternate records from a table? : Sql dba
What kind of join is join?
Which software is used for pl sql programming?
explain the difference between bool, tinyint and bit. : Sql dba
What are crud methods?