Bird
0
0

What does the unique_key define in dbt's merge operation?

easy📝 Conceptual Q1 of 15
dbt - Incremental Models

What does the unique_key define in dbt's merge operation?

AThe column(s) used to match records between source and target tables
BThe name of the target table to merge into
CThe SQL dialect used for the merge operation
DThe columns to be updated during the merge
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of unique_key in merge

    The unique_key identifies which column(s) dbt uses to find matching rows between source and target tables during a merge.
  2. Step 2: Differentiate from other merge parameters

    Other options like target table name or columns to update are unrelated to unique_key's purpose.
  3. Final Answer:

    The column(s) used to match records between source and target tables -> Option A
  4. Quick Check:

    unique_key = match columns [OK]
Quick Trick: unique_key matches rows for merge, not update columns [OK]
Common Mistakes:
MISTAKES
  • Confusing unique_key with columns to update
  • Thinking unique_key sets target table name
  • Assuming unique_key defines SQL dialect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes