can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / pravin
select max(sal) from emp
where sal=(select max(sal)
from emp
where sal<(select max(sal)
from emp))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the purpose of indexes?
How data can be copied from one table to another table?
Give me a SQL Query to find out the second largest company?
What is difference between clustered and non clustered index?
Differentiate between ms sql server reporting services vs crystal reports?
What are the basic features of a trigger in ms sql server?
whats new about truncate in sql server 2008?
What are the joins in sql server? : sql server database administration
What is a Join and explain its types?
How will you make an attribute not process? : sql server analysis services, ssas
How do use Having,Group by,Group function in SQL?
What does dml stand for?
How can you fetch alternate records from a table?
What are system databases into sql server (2005/2008) : sql server database administration
what's the information that can be stored inside a bit column? : Sql server database administration