December 2017
Beginner to intermediate
264 pages
5h 38m
English
The public datasets provided in BigQuery can be used as an example for table joins. An inner join returns records with matching values for the join columns from both the tables on the join. Here is an example of an inner join using data from the New York Metropolitan Museum of Art (https://cloud.google.com/blog/big-data/2017/08/when-art-meets-big-data-analyzing-200000-items-from-the-met-collection-in-bigquery):
#standardSQLSELECT images.public_caption, objects.department AS departmentFROM `bigquery-public-data.the_met.images` imagesINNER JOIN `bigquery-public-data.the_met.objects` objects on objects.object_id = images.object_id
The result set returned includes data from both tables joined on the object_id dimension as specified ...
Read now
Unlock full access