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 / pankaj kumar

if am not wrong we can also do the same thing by using aggreate function like Min or Max..

Like if i want to know 4th Highest Salary then i can

SELECT MIN(Sal) FROM TableName
WHERE Sal IN
(SELECT TOP 4 Sal FROM TableName ORDER BY Sal DESC)

Regards
Pankaj Kumar
pankaj.arrah@gmail.com

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is polymorphism and advantage ?

1989


What is .net mobile input validation. : Microsoft dot net mobile

935


Explain about continuable exceptions?

971


What are end points, contract, address and bindings?

931


Different types of authentication modes in .net framework ?

1000


What is ILDASM ?

1110


What are the different pipelining hazards? : Dot net architecture

1019


What is Opf3

1004


What do you know about machine.config file ?

950


What size is a .net object?

1038


Explain about cookie less session state? : .NET Architecture

975


Explain about .net garbage collector?

950


Explain the purpose of cache? How is it used? : .NET Architecture

982


What is the purpose of cache? How is it used? : Dot net architecture

883


What are the main Tools to develop .Net Application?

961