Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / gaurav mishra
The answer query is......
Select max(sal) from emp a where (&N-1) in(select count
(distinct(b.sal)) from emp b where a.sal<b.sal);
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
How much does sqlite cost?
Can a varchar be a primary key?
What is autocommit sql?
What is the difference between null value, zero, and blank space?
What is the maximum size of sqlite database?
What is identity column in sql server?
Can we use join in subquery?
What is clustered index in sql?
How do I view a table in sql?
What is meaning of <> in sql?
What is view explain with example?
What can sql server reporting services do?
What's the difference between a primary key and a clustered index?
what is a cursor? : Sql dba