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 will fetch last 5 rows from table in db2

Answer Posted / vaneesh khurana

Hi Harsha,

There is nothing to do with multiple of 5.
Simply declare the array of occours of 5 keep on filling
it when 6th record comes start over writing it from 1st.

At last we only left with the last 5 fetched rows.

Vaneesh Khurana

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the ddl of a table in db2?

1131


How can you classify the locks in db2?

1089


How can we read records for specific member in CL? AND rpg?

700


What is a cursor in programming?

1068


Why do chiropractors use drop table?

1106


What does a deadlock mean in DB2?

1167


How to retrieve rows from a db2 table in embedded sql?

1390


What is concurrency?

1233


What is check constraint in db2?

1087


What is the difference between oracle and db2?

1108


What is table space in db2?

1016


What is the use of db2?

1055


What is difference between isnull and coalesce?

1054


Highlight all the advantages that are attached to a package.

1119


Is db2 a mainframe database?

1000