I have two DB2 databases (Database1 and Database2) both containing a table called SubscriptionTable. Both tables contain user subscription related data and the columns of SubscriptionTable are the same in both databases.
Now I need to copy (and overwrite) data from Database1.SubscriptionTable to Database2.SubscriptionTable but only if the LAST_UPDATED_TIMESTAMP column in Database2.SubscriptionTable is not greater than a specific date.
So in short I would like to overwrite subscription data in Database2.SubscriptionTable but only if the data was NOT modified after a specific date.
Could I use existing utility for this purpose, e.g. db2 import where I could also specify a condition (LAST_UPDATED_TIMESTAMP < 'XXXX-XX-XX') for each row being overwritten ?