If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Best approach to update field information from one database to another.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-12-11, 03:25
Chinnu55 Chinnu55 is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Best approach to update field information from one database to another.

Hi,

In my application, we have to work with 2 databases.

1. First database(D1) is where we get all the updated information.
like userID, emailID, status, dept etc. lets call table "ABC", which can contain more than 4 Lakhs record.

2. Second database(D2) is where we need to update to the table "XYZ" by retrieving data from D1."ABC". Table "XYZ" can contain "25 to 50 thousand records".

Problem:
Now, I need to update status information in table D2."XYZ" by retrieving status field data from table D1."ABC" using "userID" as primary and foreign key.

May I know the best approach to update the status information of 50,000 records of database (D2) from 4 Lakhs records of database (D2)?

Thanks,
Chinnu
Reply With Quote
  #2 (permalink)  
Old 06-12-11, 08:14
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Chinnu55 View Post
May I know the best approach to update the status information
I think the best would be to use an UPDATE statement.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On