How does BigQuery MERGE work, and how would you use it for upserts and slowly changing dimensions?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how the BigQuery MERGE statement matches a source to a target table and how to use it for upserts and slowly changing dimensions. Tests knowledge of WHEN clause actions, Type 1 versus Type 2 history, duplicate keys, NULL handling and partition costs.