Skip to Content
Google BigQuery Analytics
book

Google BigQuery Analytics

by Siddartha Naidu, Jordan Tigani
June 2014
Intermediate to advanced
528 pages
13h 54m
English
Wiley
Content preview from Google BigQuery Analytics

Chapter 10Advanced Queries

At this point, you should be familiar with BigQuery SQL (Chapter 7, “Running Queries”) and how BigQuery SQL is executed (Chapter 10, “Understanding Query Execution”). This chapter builds on those two topics, shows some additional things you can do with BigQuery, and demonstrates how they relate to the underlying architecture.

The chapter is divided into four portions:

  • Advanced SQL: Describes how to use more advanced SQL constructs (variants of JOIN, windowing functions, and so on) that are part of standard SQL.
  • BigQuery SQL extensions: Describes features in BigQuery, such as queries over nested and repeated fields that do not exist in standard SQL. It also relates these features to the BigQuery architecture.
  • Query Troubleshooting: Gives some common errors encountered when writing queries and some tricks to avoid those errors. There are some cases where queries that seem like they should work actually fail; this section describes why they fail and how to fix them.
  • Query Recipes: Contains a number of recipes for answering common questions in SQL, such as how to compute a trailing 3-day average and how to perform cohort analysis.

You can read this chapter through directly, but it may also be a useful reference guide. For example, the troubleshooting section can be helpful when debugging a query that you think should run successfully but BigQuery doesn't agree. The recipes section can be useful to refer to if you're struggling with how to phrase your ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

BigQuery for Data Warehousing: Managed Data Analysis in the Google Cloud

BigQuery for Data Warehousing: Managed Data Analysis in the Google Cloud

Mark Mucchetti
Advanced Analytics with PySpark

Advanced Analytics with PySpark

Akash Tandon, Sandy Ryza, Uri Laserson, Sean Owen, Josh Wills

Publisher Resources

ISBN: 9781118824795Purchase book