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 ?

Answers were Sorted based on User's Feedback



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

Answer / 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

More Dot Net AllOther Interview Questions

what is stage management ? (ASP.NET)

5 Answers   Ness Technologies,


What is VSS? Use of VSS? How can we use VSS in our Application?

4 Answers  


what are clr,cls,cts?what is .net framework?

6 Answers   Six Sigma,


Explain about metadata?

0 Answers  


what is polymorphism and advantage ?

0 Answers   TCS,


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

0 Answers  


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

0 Answers  


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

11 Answers   GeoTechnology, Wipro,


2. What type of code (server or client) is found in a Code-Behind class?

1 Answers  


How does .net remoting work?

0 Answers  


How to call .NET Web service from Java Appl. & Why ?

1 Answers  


what is a namespace?how they are classified?write a program which contains class,object,inheritance?

0 Answers   Six Sigma,


Categories