02-08-2024 03:02 AM
- Source system
-->Table (Orderlines)
02-14-2024 02:33 AM
Hi @Retired_mod
First of all, thanks for your comprehansive answer. Although I appreciate your input, I'm missing the answer to address my problem: I don't want to delete all data from the previous load, only the data that 'overlaps' my new load;
Case 1
In this case, I load data from the source system using a 'sliding' date window: I'm fetching all rows from (let say) the last month, because rows can change or removed in this month. So I want to keep everything allready loaded prior to the last month and delete everything from last month and further (because these are in my new load).
Case 2
Same for this case: I don't want to delete the older ID's that no longer exists: They do exist, but they are not in my icremental data load anymore: I'm only fetching the order line for the ID's that are changed. So it must keep all ID's from prior load, and delete all IDs that are in the new incremental load.
How can DLT handles these deletes? I can't see how a synthetic key could help in these cases.
Do you understand my problem? Otherwise, I will prepare some samples.
03-11-2024 01:07 PM
Does anyone have an idea?
@Retired_mod Could you tell me if it's possible?
06-15-2024 05:09 AM
@_TJ did you find a solution for sliding window
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now