About UpdateSQL
SQL is how data gets answered. AI now writes a lot of it, and someone has to know whether the answer is right.
Why it exists
Most SQL courses are either long video series you watch rather than do, or practice sites that assume you already know SQL. UpdateSQL sits between them: short lessons that each teach one or two ideas, then have you write a real query against realistic business data, checked the moment you run it.
The other half is new. AI assistants write SQL that runs, looks right and is sometimes quietly wrong: a filter applied to the wrong rows, an average that skips missing values, a join that counts everything twice. Every unit ends with a query an AI wrote, and you learn to catch what it got wrong.
How the lessons are built
- Every lesson's answer is checked automatically against the database before it is published, along with the common wrong answers, so the feedback you get is tested too.
- No lesson uses a keyword before a lesson has taught it.
- Any number a lesson quotes is checked against the database engine.
- The data belongs to Northwind Gear, a fictional online store. Every customer, order and product is made up.
Why PostgreSQL
Every query you write here runs on PostgreSQL, the real database, compiled to run inside your browser. Nothing to install, and nothing you type leaves the page.
We chose it for three reasons. It is the most used database among professional developers in the 2025 Stack Overflow Developer Survey, so it is what you are most likely to meet at work. Its SQL is the closest to the standard, so what you learn carries over to other databases with the fewest changes. And when you ask an AI assistant for SQL without naming a database, it usually writes PostgreSQL, so you practice on the same kind of SQL you will be checking.
If your team uses SQL Server, MySQL, Snowflake or Oracle, the ideas are the same: filtering, joins, grouping, NULLs, window functions and spotting a wrong answer. What changes is mostly the names of functions, like TOP instead of LIMIT, or DATEADD instead of adding days to a date. Lessons point out those differences where they come up, and the feedback recognizes the common ones when you type them out of habit.
Contact
Found a mistake, or have an idea? Use "Report a problem or make a suggestion" at the bottom of any lesson, or email feedback@updatesql.com.