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

Define cache? : Dot net architecture

934


what are login controls?

1868


What are .net mobile controls features? : Microsoft dot net mobile

928


Explain a .net mobile example with details? : Microsoft dot net mobile

864


Explain How to improve the cache performance? : Dot net architecture

908


Explain the difference between inprocess vs out process session state : Dot net architecture

1062


Explain the five stages in a dlx pipeline? : .NET Architecture

909


Session State and can i store desirialized object in state server, if yes how and if not why.

1777


What is the mesi? : Dot net architecture

1014


server.transfer limitation ?

2217


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

942


how we can fire event in databound column in datagrid without using button?

1017


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

934


How cache coherency is eliminated? : Dot net architecture

905


Can I create my own metadata attributes?

1022