Insert coin · Free play · No signup

Learn SQLOnline — free, interactive, in your browser

DB Quacks is a free retro pixel-art game that teaches you SQL by having you write real queries. No signup, no downloads, no setup — just open a level and start typing SQL.

[START THE SQL TUTORIAL]

An SQL tutorial for beginners that actually runs your code

Most people learning SQL bounce between a video, a slide deck, and a database they can never quite get installed. DB Quacks skips all of that. Every query you write executes instantly in the browser using DuckDB compiled to WebAssembly, so the results you see are computed from real data — not screenshots or canned answers.

You start with the basics of SELECT and build up naturally. Filter rows with WHERE, sort with ORDER BY, combine tables with JOIN, and summarize data with GROUP BY and aggregate functions. Because you write the SQL yourself and see immediate feedback, the concepts stick.

What the free SQL course covers

Why learn SQL with a game?

SQL is the language of data. Analysts, engineers, product managers, and scientists all reach for it, and it has stayed in demand for decades precisely because it is simple to start and deep to master. Learning it through a story-driven game keeps you motivated: instead of abstract exercises, you help Duckbert the duck solve puzzles that happen to require exactly the query you are learning to write — in levels like "Where in the Pond is Carmen San-Duck-o?" and "The ROW_NUMBER Awakens."

The 38-level tutorial takes you from your very first SELECT to confident, real-world querying. When you finish, keep going with the story-driven SQL challenges or read practical walkthroughs on the blog.

[BEGIN LEVEL 1]