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 is benefit of creating memory optimized table?
How many functions are there in sql?
What is cascade in sql?
What is rename in sql?
What is database migration?
What are few of the schema objects that are created using PL/SQL?
What is a join?
How do you declare a user-defined exception?
Can we rename a column in the output of sql query?
How do you run a query?
What if we write return in procedure?
What is difference between hql and sql?
Do prepared statements prevent sql injection?
What is anonymous block in sql?
Why function is used in sql?