The method for exchanging the outcome of a Query among distinct Jobs within BigQuery is through using temporary tables or views.
Here are the steps in using temporary tables or views:
CREATE TEMP TABLE temp_table AS
SELECT column1, column2, ...
FROM table1
WHERE date_column = '2021-01-01';
SELECT a.column1, b.column2
FROM table2 a
JOIN temp_table b ON a.id = b.id
WHERE b.column1 = 'value';
Note: - Temporary tables are only visible to the current session and will be automatically deleted when the session ends. - Temporary views can also be used in the same way as temporary tables.
Asked: 2023-05-28 17:36:52 +0000
Seen: 1 times
Last updated: May 28 '23