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

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -