Combine multiple tables to act as a single table on BigQuery? -
i have several tables same schema on bigquery:
dataset.table00 dataset.table01 dataset.table02 ... dataset.table99
i want make table dataset.table
combines tables together.
you can use comma union all feature of bigquery
select * dataset.table00, dataset.table01, dataset.table02, ... dataset.table98, dataset.table99
you can save above view , use
select * myview
you can use table wildcard functions
select * table_query([project:dataset], 'regexp_match(table_id, r"^table[\d]{2}")')
Comments
Post a Comment