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...


i have table agdet i want first 5 maximum commission which
query will you write for this thanks in advance

Answers were Sorted based on User's Feedback



i have table agdet i want first 5 maximum commission which query will you write for this thanks in..

Answer / yuvaevergreen

exec sql
select commission from agdet order by commission desc
fetch first 5 rows only
end-exec;

Is This Answer Correct ?    10 Yes 0 No

i have table agdet i want first 5 maximum commission which query will you write for this thanks in..

Answer / girish

select * from agdet a where 5 >= (select commission from
agdet a , agdet b where b.commission > = a. commission)with
ur;

Is This Answer Correct ?    0 Yes 3 No

i have table agdet i want first 5 maximum commission which query will you write for this thanks in..

Answer / thiru

select * from agdet order by commission fetch first 5 rows
only for read only with ur

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More DB2 Interview Questions

What is the cascade rule and how does it relate to deletions made with a subselect?

1 Answers  


What is a recovery log?

1 Answers  


What is runstats utility in db2?

0 Answers  


How can the duplicate values be eliminated from db2 select?

0 Answers  


what happend with out using Commit,when closing cursor and program?

5 Answers   CSC,


Can one database have multiple instances?

0 Answers  


can all users have the privilage to use the sql statement select * (dml)?

0 Answers   IBM,


How to update more then one record using update?

5 Answers   IBM,


What does a deadlock mean in DB2?

0 Answers  


Why do chiropractors use drop table?

0 Answers  


What is a cursor and what is its function?

2 Answers  


How do you stop a db2 database in linux?

0 Answers  


Categories