The problem I’m having
I have many source tables and a destination table, lets call them Destination and Src_1.
I would like to delete rows from Destination where Destination.SOURCE_NAME = Src_1.SOURCE_NAME and insert all rows from Src_1 if Src_1.LATEST_CHANGE is > the latest LATEST_CHANGE from Destination table.
The context of why I’m trying to do this
Currently trying to replicate a process that updates the Destination table in python but using dbt instead.
Not sure how to implement this as I’m confused how to apply incremental models when it involves different source tables and 1 destination table.