Delta live table now has the capability to do SCD Type 2 changes. But after going through this feature, I understood that this will work if I have only one new row with a new effective date. In the scenario where I have two new rows with two different effective dates, how do we handle such scenarios. For example, if I have a discount that is effective from today till next 3 months and one more discount which is effective after three months. In this case, whenever a change record comes, i will have to sort the rows to get the latest effective data and change that and not the future one
Thanks