Skip to content
Codewilds

The Archive Vaults

Learn SQL

Ask databases questions — query, join, summarise and change real data with SQL.

Learn SQL online with interactive lessons. Write real queries against a SQLite database in your browser, pass tests and level up. First chapter free.

30 lessons6 chapters6 bosses · 2 quizzes~14 hours980 XP to earnBeginner
Start the first lesson — free

First 7 lessons free · Finish within 30 days after buying and get $10.50 back

Want more than one course?

The All-Access Pass unlocks all 8 courses and every new one we release, for $120 once.

Course map

6 chapters, 30 lessons

  1. 1

    Querying Basics

    Ask your first questions: SELECT columns, filter rows with WHERE, sort and limit results.

    0/7
  2. 2

    Aggregates & Grouping

    Count, sum and average data, and summarise it per group.

    0/5
  3. 3

    Joins

    Combine rows from several tables with INNER and LEFT JOIN.

    0/5
  4. 4

    Changing Data

    Add, change and remove rows with INSERT, UPDATE and DELETE.

    0/4
  5. 5

    Designing Tables

    Create your own tables with the right types, constraints and foreign keys.

    0/4
  6. 6

    Advanced Queries

    Subqueries, CASE, common table expressions and window functions.

    0/5

About this SQL course

SQL is the language of data. Almost every app, website and company keeps its information in a database — users, orders, payments, messages — and SQL is how developers and analysts ask that database questions. It is one of the most useful skills in tech: backend developers, data analysts, data scientists and product managers all use it every day.

In this course you query a real SQLite database that runs right in your browser. The database holds the records of a fantasy realm — its heroes, guilds, quests and market — so every query answers a question you can picture: Which heroes are above level 10? Which guild earned the most gold? Which items has nobody bought?

Every lesson is short and practical. You write a query, press Run to see the result table, and press Submit: automated tests compare your result with the expected one and show you exactly which rows or columns differ. You start with SELECT and WHERE, move on to grouping and joins, learn to change data and design your own tables, and finish with subqueries, CTEs and window functions. Each chapter ends with a boss battle, and you earn XP, streaks and loot as you go.

No installs and no setup — just your browser. SQL is part of the Backend Developer, Full-Stack Developer and Data Analyst paths.

Learn SQL: frequently asked questions

Is this SQL course free?

The whole first chapter (SELECT, WHERE, ORDER BY, a quiz and a boss battle) is free and needs no account. The rest of the course is a one-time purchase, and you can claim 30% back if you finish within 30 days.

Which database does the course use?

SQLite, running in your browser. The SQL you learn — SELECT, JOIN, GROUP BY, INSERT and so on — works the same way in PostgreSQL, MySQL and SQL Server, apart from small details.

Do I need to know programming first?

No. SQL is a great first language — queries read almost like English sentences.

Can I break the database?

No. Every run starts from a fresh copy of the database, so you can experiment freely.

Other realms