Skip to content
Advertisement

Google BigQuery Dimensions SQL Multiple Grids

how would you select multiple grids in the example below instead of just one under “WHERE”:

What needs to be changed:

It currently only runs for 1 organisation (GRID), I would like it to run for 11 organisations. The org is identified with an ID called a “GRID”, it looks like this: “grid.5170.3”

I want my new code to take 10 org IDs more. Need to use these 10: grid.5254.6, grid.7048.b, grid.5117.2, grid.10825.3e, grid.4655.2, grid.11702.35, grid.154185.c, grid.475435.4, grid.7143.1, grid.27530.33

And add a column with the org name; currently there is only a column with the org.

Thanks, new to this whole thing.

Advertisement

Answer

Instead of WHERE year >= 2011 AND year <= 2020 AND "grid.5170.3" in UNNEST(research_orgs) use below

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement