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 recursive join in sql?
What are crud methods?
what are myisam tables? : Sql dba
What is pl sql package?
What is the least restrictive isolation level? : Transact sql
What is the difference between delete and truncate commands?
what is commit? : Sql dba
What is user in sql?
What is difference between pls_integer and integer?
how to calculate the difference between two dates? : Sql dba
How do sql databases work?
Why is normalization important?
What is a sql*loader control file?
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
how many ways we can we find the current date using mysql? : Sql dba