Bruin Academy

Free programme

SQL in the Age of AI

Learn SQL from scratch, then learn to trust the SQL an AI writes for you.

No experience needed - your coding agent teaches each lesson, you write SQL by hand, and it reviews your work while guiding you through the concepts.

3 courses - Free - Runs locally, no account needed

Why & how

Agents write most SQL now. Your job is to trust it - or catch it.

A query that errors costs you a minute. One that runs and quietly returns the wrong number costs far more - so you learn to read SQL, then one loop for catching it.

AskReadInterrogateVerifyDecide

Taught by your agent

One prompt to start, then next lesson and review my work - it teaches, sets a task, and grades your query.

Runs locally

One command builds a small dataset on your machine - no cloud, no credentials.

Messy on purpose

Missing values, duplicate keys, and broken links are planted so you learn to find them.

Portable skills

They transfer to dbt, Dataform, SQLMesh, or any stack - Bruin is just the environment.

See a real "silent failure"
agent - duckdb-default

# you: total revenue across all orders?

SELECT SUM(order_total) AS revenue
FROM orders o
JOIN order_items oi ON o.order_id = oi.order_id;
Runs fine. 2.4x too high. order_total is counted once per line item, not once per order.
The audit catches it. Correct total: 604,065.00.

Frequently asked

Questions people ask first

  • How is the course taught?
    By your own coding agent, not by these pages. You paste one setup prompt, then drive with two commands - say "next lesson" and it teaches the lesson and sets a task; do the task by hand and say "review my work" and it runs your query and grades it against a rubric. These pages are a companion you read alongside.
  • Do I need to know SQL already?
    No. The first course starts from SELECT and has you writing queries by hand before any agent is involved.
  • What do I need to start?
    A terminal you are willing to type into, and an AI coding tool - Claude Code, Cursor, or Codex. No prior SQL, no database, no cloud account, and no credit card. If you can copy and paste one command, you are ready; the agent handles the intimidating parts, including Git.
  • Why not just ask the agent to double-check its own SQL?
    Because it checks with the same assumptions it wrote with. If the first query used the wrong join, the self-check usually repeats it. The course teaches you to verify with a genuinely different method, which is what catches a wrong number.
  • What is the difference between self-paced and the cohort?
    The lessons are identical and fully open either way - nothing is gated. The cohort adds a private Slack channel, regular office hours, and a certificate on completion. Cohort dates are announced in the community channel after you register.
  • Do I need a cloud account or a warehouse?
    No. One command generates a small retail dataset on your machine in about a tenth of a second. An optional MotherDuck path exists if you want a cloud warehouse.
  • How long does it take?
    The first course is 15 lessons and about 148 minutes of reading. How long it actually takes depends on how much you practise - most people spend a few hours to a few days per course.

Get help & contribute

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.

The signup form is hosted by Brevo. Allow marketing cookies to load it.