Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / babbu
it's easy with self join:
select max(sal) from emp e1,emp e2 where e1.sal < e2.sal
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the different datatypes available in PL/SQL?
what is primary key? : Sql dba
Explain what is sql*plus?
What are pl/sql cursors?
What is the clause we need to add in function body to return variable?
Explain about various levels of constraint.
What are the benefits of pl/sql packages?
What is the requirement of self-join?
What is sql trigger example?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
What is an example of translating a date into julian format?
what is the stuff function and how does it differ from the replace function? : Sql dba
what is union, minus and interact commands? : Sql dba
What pl/sql package consists of?
How can you fetch first 5 characters of the string?