Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the purpose of indexes?

983


How data can be copied from one table to another table?

954


Give me a SQL Query to find out the second largest company?

1169


What is difference between clustered and non clustered index?

990


Differentiate between ms sql server reporting services vs crystal reports?

913


What are the basic features of a trigger in ms sql server?

1202


whats new about truncate in sql server 2008?

2508


What are the joins in sql server? : sql server database administration

1016


What is a Join and explain its types?

1106


How will you make an attribute not process? : sql server analysis services, ssas

1095


How do use Having,Group by,Group function in SQL?

1749


What does dml stand for?

952


How can you fetch alternate records from a table?

964


What are system databases into sql server (2005/2008) : sql server database administration

1019


what's the information that can be stored inside a bit column? : Sql server database administration

1038