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 get Top 10 Salaries from a Table

Answer Posted / meena dogra

The query will be like this:

Select distinct salary from table
order by salary desc
fetch first 10 rows only

Is This Answer Correct ?    31 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the duplicate values be eliminated from db2 select?

1161


Explain in brief how does db2 determine what lock-size to use?

1095


in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?

2162


Who uses db2?

1114


What does runstats do in db2?

1188


What is the usage of open cursor command?

1151


What is node in db2?

1104


How can you count the number of rows from a table tab?

1140


Explain about cursor stability?

1111


Which command is used to connect to a database in DB2 ? Give the Syntax.

1153


On which levels locks can be applied?

1206


What is temporal table in db2?

1101


Explain correlated sub-queries.

1096


What is a db2 schema?

1298


How to find the maximum value in a column in the db2 database?

1131