Skip to Content
Learning Google BigQuery
book

Learning Google BigQuery

by Thirukkumaran Haridass, Eric Brown
December 2017
Beginner to intermediate
264 pages
5h 38m
English
Packt Publishing
Content preview from Learning Google BigQuery

Right Outer join

This returns all data from the join condition columns of the right table and all matching data in the left table. All other rows in the left table that do not match the join condition will return null values in the condition column. The following RIGHT JOIN query will return the list of repositories from the sample_repos (LEFT-hand side of the join) table only if there is a record for that repository in the sample_commits table (RIGHT-hand-side table of the join). The EACH keyword is added to the join because the number of records in both the tables is very high. Use the EACH option if BigQuery throws a resources exceeded error when running your queries using JOIN:

#legacySQLSELECT repos.repo_name, COUNT(repocommits.commit) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google BigQuery: The Definitive Guide

Google BigQuery: The Definitive Guide

Valliappa Lakshmanan, Jordan Tigani
Google BigQuery Analytics

Google BigQuery Analytics

Siddartha Naidu, Jordan Tigani

Publisher Resources

ISBN: 9781787288591Supplemental Content