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


in my table i will update only 100 record among 1000
records i need to display recently updated record'.....can u
tell me where those records are stored how can i display
those records...?if there is any sql query pls let me know....?

Answers were Sorted based on User's Feedback



in my table i will update only 100 record among 1000 records i need to display recently updated re..

Answer / kingmanish

Generally while updating rows in table we also update te
sourcr by which the rows were update( like program id)

also upadate date etc.

we can retrive the records having timestamp of the time the
rows were updated or the program name which was used to
update the table

Is This Answer Correct ?    1 Yes 0 No

in my table i will update only 100 record among 1000 records i need to display recently updated re..

Answer / adarsha

Use the DB2 COPY Utility with Incremental Image copy.. which
give you the latest update done to a prticular table/table
space from last update .. below is the utility step

COPY TABLESPACE DSN8D51A.DSN8S51E
FULL NO
SHRLEVEL CHANGE

Use jcl for that

Is This Answer Correct ?    2 Yes 2 No

in my table i will update only 100 record among 1000 records i need to display recently updated re..

Answer / vikram

Use the below query to fetch first 100 rows among 1000 rows ,

select * from table order by column desc fetch first 100 rows

column is either timestamp or id

so the above query gives recent 100 updated rows.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

0 Answers  


How to create db2 table in mainframe?

0 Answers  


What is the command used by TSO users to invoke DB2?

2 Answers   IBM,


Where besides the DB2 catalog is database object information stored by DB2?

1 Answers  


Explain the benefits you can get from mainframe connect?

0 Answers  


what is the use of commit ? and what is the syntax?

2 Answers   Deloitte,


how can u nderstand the sql stmts executed successfully or not ?

1 Answers   TCS,


which SQL comment successfully removes uncommitted changes from a DB2 database A) rollback B) delete C) drop D) decommit

2 Answers   Accenture, Wipro,


Is db2 a mainframe?

0 Answers  


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

0 Answers  


is it possible to get -811 error when you use cursors. why?

2 Answers   IBM,


Why use RUNSTAT Utility?

3 Answers   Merrill Lynch,


Categories