Following is my scenario where i am trying to do this the best possible way , i tried in SSIS using lookups but dint work out properly (low perfomance)
Table Name: Subtransaction
Fields :
TransactionNo , old pay , new pay , old customer , new customer
based on this data i need to update the transaction table with millions of records
Table Name :MainTransaction
Fields:
TransactionNo,Pay,Customer
I need to update the records matching on the transaction
There are few conditions though.
1.pick up those records from the subtransaction where old pay and new pay are not the same , then update those records in the main transaction based on the transaction no
2.similarly pick up those records from the subtransaction where old customer and new customer are not same , then update those records in the main transaction based on the transaction no
Now i need to insert the transaction nos that were updated in to a log table
LogTable
TransactionNo,UpdatedTime
Can some one help me with this please?
↧