QueryStash

QueryStash

Merge Statements BigQuery

The combination of insert and update in a merge statement simplifies data processing where we don't know if a record already exists.

The example below is merging into the dataset.insert_table using data from the dataset.source_table.

  • If value1 is a matched we update value2.
  • If value1 is not a match we insert a new record.
Public
bigquery

QueryStash

Created: Sep 16th 2020

QueryStash

QueryStash

Made with ❤️ by @Yekalb

© 2024 Query Stash. All rights reserved

TwitterFacebookEmail

Resources

BlogPricingYour First QuerySearch Your Stash

Stay up to date

Terms of ServicePrivacy Policy