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 can we find nth max salary from A table

Answer Posted / bhaskar reddy

select * from table1 a where(n-1)= (select count(distinct
sal) from table1 b where b.sal>a.sal)

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the contents of dclgen?

1160


What is the maximum size of a char data type in db2?

1050


What do you mean by storage group (stogroup)?

1079


What is meant by explain?

1194


How do I optimize a query in db2?

1147


What are iseries servers?

1130


What is dclgen in db2?

1195


How do we specify index to include or not during bind process.

2173


How to test SQL -911 error while developing COB-DB2 program

7666


What is view db2?

1131


How do you select a row using indexes in db2?

1175


What kind of database is db2?

1081


What is the information associated with sysibm.syslinks table?

1168


What is dbrm library?

1114


Name the lockable units in DB2?

1187