Hi.
Here is the example
Say You have following table in your database
create table CUSTOMER
(CUSTOMER_ID INTEGER, - Primary Key
CUSTOMER_NAME,
VARIOUS FIElDS
LAST_MODIFICATION_DATE
)
1 Source file/table has same structure
2 Target table is very big and when you run updates it takes a lot of time to complete
My suggestion is to create another table
create table CUSTOMER_TMP
(CUSTOMER_ID INTEGER, - Primary Key
CUSTOMER_NAME,
VARIOUS FIElDS
LAST_MODIFICATION_DATE
)
and use following sequence
truncate table CUSTOMER_TMP <- Sql Before
load data into CUSTOMER
update CUSTOMER
set CUSTOMER.customer_name=CUSTOMER.customer_name
VARIOUS FIElDS
FROM CUSTOMER_TMP
WHERE CUSTOMER_TMP.customer_id=CUSTOMER.customer_id and
CUSTOMER_TMP.LAST_MODIFICATION_DATE>CUSTOMER.LAST_MODIFICATION_DATE
For SQL After
Update statement will update only old records
I can email you screenshots if it is still not very clear
Sorry for late reply,
Mike