A common table expression is a named, temporary result set defined with WITH, turning inside-out subqueries into top-to-bottom pipelines you can read like a recipe. This cheatsheet gathers every pattern on one page, each snippet annotated line by line. Keep it open while you query, or save the image and pin it nearby.
For the full background, read the guide to common table expressions in BigQuery.
Download the cheatsheet
Hope this helps, Andrei.
[…] Cheatsheet: https://datalad.co.uk/bigquery-ctes-cheatsheet/ […]
[…] Free cheatsheet here: https://datalad.co.uk/bigquery-ctes-cheatsheet/ […]