I have the following four data tables in the same dataset at Google Bigquery:
I need to count users from these four tables, and organize the information into a table like this:
The following query returns the <projectID>:<dataset>.<tableID>
path of all existing tables at this moment:
SELECT CONCAT(project_id, ':', dataset_id, '.', table_id) AS paths,
FROM [<projectID>:<dataset>.__TABLES__]
WHERE MSEC_TO_TIMESTAMP(creation_time) < DATE_ADD(CURRENT_TIMESTAMP(), 0, 'DAY')
How to iterate the counting in Google Bigquery for all previous paths?