r/bigquery • • 22h ago

Free BigQuery lessons on an in-browser BigQuery engine

14 Upvotes

We all know BigQuery is amazing, but when people start working with it, even if they know SQL, they often lack BigQuery-specific knowledge.

Most of the courses I found focus on plain SQL and don't cover BigQuery-specific stuff like UNNEST, QUALIFY, GROUP BY ALL or even pipe syntax. And almost no one teaches billing, so people don't know what on-demand pricing is, that a query is billed by the bytes it reads, and so on. So they learn it the hard way, in production.

Besides, most courses require a Google Cloud project. Yes, Google offers a sandbox with no card needed: 1 TiB of queries per month and 10 GiB of storage for free. But it has its own limits. First of all, you can burn that 1 TiB just learning. You can't run INSERT, UPDATE, DELETE or MERGE, and tables expire after 60 days (okay, that's enough to learn). And once you attach a card, it's not a sandbox anymore, and everything over 1 TiB a month is billed.

I built the thing I wanted to have: a course I can give new people joining my team before I grant them any BigQuery access.

Learn.querylab.io runs in the browser on a SQL engine we made for Querylab.io, so you don't need a Google Cloud account, or any account at all. The engine validates and runs queries and supports most of BigQuery's syntax (except training and running ML models, AI functions and external tables, which can't run in a browser (YET)). To keep it as close as possible to real BigQuery, it shows each query's estimated bytes and on-demand price as you type, and some challenges are about how much your query reads.

The practice tables are a sample of the UK MOT data. MOT is the yearly inspection every car in the UK over three years old has to pass, and the data is how each car did. Cool dataset btw, and the full version is public in BigQuery: `querylab-io-demo.MotHistoryData`. The sample is priced at the size of the full tables.

There are 76 lessons and about 250 challenges. After the basics they cover pipe syntax, QUALIFY, arrays and structs, JSON, wildcard tables, scripting, MERGE and time travel, and there's a track on the GA4 export.

When you hit something the engine can't run, it says so. Please let me know if it's something we should add.

I'd love to hear your feedback and what you think about it. I'll really appreciate it, and we'll adjust the app based on what you say.