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

How to improve the cache performance? : .NET Architecture

908


Explain difference between inprocess vs out process session state? : .NET Architecture

933


i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

2707


inprocess vs out process session state : Dot net architecture

890


what are constructors and destructors?

2089


Explain difference between machine config vs. Web config? : .NET Architecture

909


What is MS chart control in visual studio?

1160


How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

884


Explain cache memory? : Dot net architecture

893


How to prevent my .NET DLL to be decompiled?

996


I can't be bothered with cas. Can I turn it off?

876


Explain .net mobile events? : Microsoft dot net mobile

899


What is cache coherency and how is it eliminated? : Dot net architecture

880


Different types of authentication modes in .net framework ?

918


Explain .net mobile automatic paging? : Microsoft dot net mobile

868