Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / satya_k21
Hi,
Select * from emp e where 2>= (select count(sal) from
emp e where sal>=e.sal) order by desc.
Let me know if it is wrong..
Regards,
Satya.K
| Is This Answer Correct ? | 11 Yes | 16 No |
Post New Answer View All Answers
Explain select statements in sql?
Is id a reserved word in sql?
How to disable a trigger name update_salary?
How do you use collections in procedure to return the resultset?
which command using query analyzer will give you the version of sql server and operating system? : Sql dba
What is the difference between drop and truncate commands?
how to start mysql server? : Sql dba
What is cursor in pl sql with examples?
What are the triggers associated with image items?
What are types of indexes in sql?
What is a mutating table and a constraining table?
What is the use of index in sql?
Does truncate table reset auto increment?
What is a unique key?
What is a join query?