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 / prasoon madnawat

SQL Server:
Select MIN(Salery) from (SELECT TOP 2 * from EMPLOYEE)

Oracle:
Select MIN(Salery) from (SELECT * from EMPLOYEE where ROWNUM <3)

MySQL
Select MIN(Salery) from (SELECT * from EMPLOYEE LIMIT 2)

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

12. Types of polymorphisem[Run and Design Exp.]

2011


Explain about continuable exceptions?

916


Explain 'managed' mean in the .NET context

1064


How do I know when my thread pool work item has completed?

868


How to improve the cache performance? : Dot net architecture

886


How to upload in video,mp4,in .net 4.5 ..?

896


What is the importance of updatepanel control?

977


can u give me real example of how web.config overrides the machine.config file?

1727


How can we perform data binding in atlas?

874


what is polymorphism and advantage ?

1929


Explain different pipelining hazards and how are they eliminated? : .NET Architecture

961


any one can explain about projectarchitecture and project approach briefly

2451


Explain Intermediate Language?

1028


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

842


What are the major differences between services and web services?

885