Skip to content
Advertisement

Tag: google-bigquery

Self-Joining across nested Records in BigQuery

I’m trying to do some joins/aggregations between nested fields in single table and running into both SQL problems and the “Correlated sub queries that reference other tables are not supported unless they can be de-correlated, such as by transforming them into an efficient JOIN” error. I’d love some SQL help with the general problem, but I’m also curious how to

Improve SQL query to find range between start and end date

I’m working with a database called international_education from the world_bank_intl_education dataset of bigquery-public-data. My aim is to plot a line graph with countries who have had the biggest and smallest change in Population growth (annual %) (one of the indicator_name values). I have done this below using two partitions finding the first and last value of the year by each

Advertisement