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...

how to find the 2nd higgest salary in the column for example
take table name is employee?
And also find bottom 2nd lowest salary ?

Answer Posted / sudhir

1. 2nd highest salary=>

Select top 1 * from (select top 2 * from emo order by sal
desc) order by sal asc

2. 2nd lowest salary

Select top 1 * from (select top 2 * from emo order by sal
Asc) order by sal Desc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we integrate atlas with web services?

995


What is msil, and why should my developers need an appreciation of it if at all?

1186


What is an asssembly qualified name? Is it a filename? How is it different?

995


What is the difference between machine config vs. Web config : Dot net architecture

999


How can I write my own .NET host?

1047


Explain the process of gc?

1030


What are the main Tools to develop .Net Application?

1008


Explain the use of virtual, sealed, override, and abstract.

1039


question related to table havi colspan and row span

2312


Explain the purpose of cache? : Dot net architecture

950


how to use custom field validation

2526


Explain Intermediate Language?

1128


Explain how cache is used? : Dot net architecture

1144


What is the difference between absolute expiration and sliding-time expiration?

1090


Define the mesi? : Dot net architecture

979