Loop in BigQuery (SQL - GOOGLE CLOUD)

Viewed 43

I would like to know how to perform a loop in bigquery to create a table changing only its name and the where clause. Basically as an example:

enter image description here

I would like, for example, to create the table three times according to vector_a, that is, we would have a table with the name 01,02,03 and filtering from vector_b that would also change to create the table with std1 at the beginning and then std2 and std3. Being these variables inside the array in string format.

1 Answers
Related