UPDATESQL

Learn SQL, and how to check the SQL AI writes.

Short lessons on realistic business data, right in your browser. One or two new ideas at a time, at your own pace. Free to start, no sign-up needed.

Find your level: 10-minute testOr start from lesson 1

How it works

  1. Learn one idea. Each lesson explains one or two things in plain words, with an example, the common mistake and the habit professionals use.
  2. Write the query. Your answer is checked against the right result, and when it is not right yet, the feedback says why: wrong rows, a missing NULL, a sort the wrong way round.
  3. Check the AI. Every unit ends with a query an AI assistant wrote. You decide whether it really answers the question, then fix it.

Try the first lesson

Unit 1, lesson 1 · SELECT, FROM

Your first query: SELECT and FROM

A query is a question you ask a table. SELECT lists the columns you want, separated by commas, and FROM names the table they come from. SELECT * means every column, which is handy for a first look at the data.

SELECT name, city
FROM customers;

Try it in your browserRead the lesson

Curious about checking AI-written SQL? See one of those lessons.

The course

37 units and 242 lessons, from your first SELECT to window functions, interview patterns and real analytics work. Set a daily goal of 1, 3, 5 or 10 lessons; the site shows how long each stage will take at your pace.

  • FoundationsUnits 1 to 8, 61 lessonsSELECT, filtering, text, dates, CASE, grouping
  • Analyst coreUnits 9 to 18, 64 lessonsJoins, subqueries, CTEs, reporting, data quality
  • Interview readyUnits 19 to 26, 50 lessonsWindow functions, interview patterns, traps
  • Applied analyticsUnits 27 to 37, 67 lessonsCohorts, funnels, experiments, changing data, performance

Browse the lessons published so far

Pricing

Free

$0

  • The whole course, up to 3 new lessons a day
  • Redo any finished lesson as often as you like
  • The placement test
  • Progress saved on every device when you sign in

Pro coming after the beta

$15 a month or $89 a year

  • No daily limit
  • The practice problem bank
  • Timed interview sets
  • Extra practice checking AI-written SQL

Everything is free during the beta.

Questions

Do I need to install anything?

No. Every query runs in your browser on a small, realistic business database. Open a lesson and start typing.

I already know some SQL. Do I have to start at lesson 1?

No. The 10-minute placement test finds your level and starts you at the right unit. You can also jump straight to practice problems.

Which database do the lessons use?

PostgreSQL, the most widely used database among developers, running right in your browser. The ideas carry over to SQL Server, MySQL, Snowflake and the rest, and lessons point out where their syntax differs.

With AI writing SQL, is it still worth learning?

More than ever, because someone has to check what the AI wrote. A query can run without an error and still answer the wrong question. Every unit ends with a lesson on catching exactly that.

What does it cost?

The whole course is free at up to three new lessons a day. Pro, coming after the beta, removes the daily limit and adds practice and interview tools.