I will start with the Join transformation (to join Source1
and Source2
based on the key fields)
If you need to create a new column for easier filtering, add a Derived Column
transformation. For instance, you can create a boolean column that indicates if the incremental record should be ignored:
shouldIgnore = iif(Source2.TimeStampUpdated <= Source1.TimeStampUpdated, true(), false())
Then add a Filter
transformation after the Join
where you specify that you want to keep records where the TimeStampUpdated
from the incremental data is greater than the historical data.
Source2.TimeStampUpdated > Source1.TimeStampUpdated
Then add a Sink
transformation to write the filtered data to the target table.