Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sushma
SELECT * from
(SELECT * FROM emp ORDER BY sal DESC)
WHERE rownum <= 2
MINUS
SELECT * from
(SELECT * FROM emp ORDER BY sal DESC)
WHERE rownum < 2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does left join work in sql?
What is the use of <> sql?
What does trigger mean in psychology?
can sql servers linked to other servers like oracle? : Sql dba
How does sql developer connect to oracle database?
how to select unique records from a table? : Sql dba
How to call a javascript function from pl sql?
What is the clause we need to add in function body to return variable?
Explain the uses of a database trigger?
What is the difference between a subquery and a join?
What will you get by the cursor attribute sql%notfound?
What is crud stand for?
Explain about various levels of constraint.
What does fetching a cursor do?
Is left join inner or outer by default?