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

How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

1070


What is difference between .net and visual studio?

976


Name some changes done since version 3.0?

972


What is .net mobile images control. : Microsoft dot net mobile

926


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

935


8. Oop-Why and were we use Interfacse and Abstract class.

2144


Define an interrupt? : Dot net architecture

978


How to improve the cache performance? : Dot net architecture

930


What is IL code, CLR, CTS, GAC & GC?

1032


How can I create a application?

941


Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?

1025


Define domestic architecture artifacts? : Dot net architecture

907


What is .net mobile input validation. Explain with an example? : Microsoft dot net mobile

953


Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile

917


how can we achieve language interoperability through CLS? How MSIL works?

1086