How do we use the merge statement inside Incremental model for SCD 1 Implementation

Viewed 3870

I am trying to implement the scd1 in Data Build Tools using the Merge query. But I am not getting the exact way to write this query in Incremental model.

Can anyone show where we have to write the merge query.

{{
    config(
        materialized='incremental'
    )
}}

<MERGE QUERY HERE> 

{% if is_incremental() %}
where last_modified_date > '2020-07-11'
{% endif %}
1 Answers
Related