105 lessons later, it's done
We just finished building the SQL course on devlearningtools.com: 15 modules, 105 lessons, SELECT basics through recursive CTEs, window functions, and database-specific advanced aggregates. On top of it, 150 practice questions across three real difficulty tiers. All free, no signup, no paywall on a single lesson.
This isn't a quick overview post. It's what's actually inside, how it's structured, and the specific decisions that make it different from the dozens of other free SQL tutorials already out there.
The 15 modules, start to finish
| # | Module | Lessons |
|---|---|---|
| 1 | SQL Basics | 12 |
| 2 | Operators and Filtering | 9 |
| 3 | Aggregate Functions | 6 |
| 4 | Joins | 6 |
| 5 | Combining and Grouping | 4 |
| 6 | Subqueries and Advanced SELECT | 10 |
| 7 | Database and Tables | 6 |
| 8 | Constraints | 9 |
| 9 | Data Types | 5 |
| 10 | Dates, Views, and Security | 5 |
| 11 | Window Functions | 8 |
| 12 | Common Table Expressions | 3 |
| 13 | Indexes and Performance | 4 |
| 14 | Transactions and ACID | 4 |
| 15 | Advanced Aggregate Functions | 14 |
Window Functions got a full 8-lesson module instead of being folded into a single "advanced SQL" page, same for CTEs and Indexes/Performance, each as its own module. Most free tutorials compress these into one rushed page; they're each large enough to need more than that.
Taught through one story, not disconnected syntax facts
Every lesson follows a learner working at a fictional company, Beacon Robotics, with a consistent schema: employees, departments, projects, project assignments. Module 4 introduces joins by actually normalizing that schema (adding a departments table, a self-referencing manager_id, a projects/project_assignments many-to-many relationship). A later module's recursive CTE lesson walks that same manager_id hierarchy to find everyone reporting to a given manager, directly, or several levels down.
The point isn't decoration. A learner who's already seen employees.manager_id in three earlier lessons doesn't have to parse a brand new, unfamiliar schema to understand why a recursive CTE is useful, they already know exactly what problem it's solving.
Every lesson covers 6 databases, not just one
Most free SQL tutorials teach one dialect and leave the rest as an exercise for the reader. Every lesson in this course shows MySQL, MariaDB, PostgreSQL, SQL Server, Oracle, and SQLite side by side wherever the syntax genuinely differs, not as a token gesture, but checked carefully enough to catch real, specific gaps. A few examples that actually shipped in the course:
| What | The Real Difference |
|---|---|
| Population vs sample variance naming | SQL Server uses VARP()/VAR(), no underscore at all, while MySQL, PostgreSQL, and Oracle use VAR_POP()/VAR_SAMP() |
| Unqualified STDDEV() | Means population standard deviation on MySQL/MariaDB, but sample standard deviation on PostgreSQL/Oracle, same function name, opposite default |
| Recursive CTEs | MySQL/MariaDB/PostgreSQL/SQLite require the literal WITH RECURSIVE keyword, SQL Server and Oracle use plain WITH and detect the self-reference automatically, writing WITH RECURSIVE on either is a syntax error |
| Getting an execution plan | A genuinely different statement on every single engine, from a plain EXPLAIN to SQL Server having no EXPLAIN keyword at all |
These aren't guessed from memory. Several were caught, and fixed, specifically because a first pass had quietly mislabeled a dialect-specific function as universal, the kind of mistake that's easy to make and easy to miss without checking.
150 practice questions, three real tiers
A course is one thing, practicing what it taught is another. Three separate practice sets, each with its own real purpose, not the same questions relabeled by difficulty:
- Basic (50 questions): SELECT basics through joins, subqueries, and table constraints, all against one small, fixed Beacon Robotics dataset, so every answer's expected output is exact and checkable, not approximate.
- Medium (50 questions): correlated subqueries, CASE expressions, CTEs, window functions, and real-world data cleaning, extending Beacon Robotics with its own sales side (clients, orders, products) instead of a disconnected second dataset.
- Advanced (50 questions): recursive CTEs, graph algorithms, concurrency and locking, ETL patterns, distributed-systems patterns like the transactional outbox, genuinely Hard-difficulty, PostgreSQL 15+ specific since several of these techniques (SKIP LOCKED, triggers, ON CONFLICT) don't translate cleanly across engines.
Basic (50)
SELECT through joins, one fixed dataset
Medium (50)
CTEs, window functions, data cleaning
Advanced (50)
Concurrency, system design, PostgreSQL
Hide / Show Solutions
Copy button, self-scored progress
Every question has a hide/show solution toggle, a copy-to-clipboard button, and a self-reported "solved" checkbox with a running score saved in your browser, no account needed, no server tracking it.
What this isn't
- + Free, every lesson, every practice question, no signup required anywhere
- + Multi-dialect by default, not an afterthought bolted onto a MySQL-only tutorial
- + One consistent schema and story across all 105 lessons, not disconnected syntax pages
- + Real practice with real solutions and explanations, not just reference material
- − No live, in-browser SQL execution engine yet, practice answers are verified against a fixed dataset by hand, not run for you
- − The Advanced practice set is intentionally PostgreSQL-only, not a 6-way dialect set like the lessons themselves
- − It's a course and practice set, not a certification, there's no completion certificate or account to track progress across devices
Who this is actually for
- Complete beginners who want SELECT, WHERE, and JOIN explained from zero, with a real worked example every time, not just a syntax definition.
- Developers who know one database and need to actually understand how their SQL would break on another one.
- Anyone prepping for a SQL interview who wants real practice questions with real solutions, not just a list of topics to go read about elsewhere.
- Anyone who's used W3Schools' SQL tutorial and wanted more depth: a flow diagram, pros/cons, common mistakes, and interview questions on every single page, not just syntax and an example.
Frequently Asked Questions
Do I need to know a specific database to start this course?
No. The course teaches concepts first, with MySQL, MariaDB, PostgreSQL, SQL Server, Oracle, and SQLite shown side by side wherever they genuinely differ, so you pick whichever one you actually have access to and follow along with its exact syntax.
Is the practice question dataset the same across all three difficulty tiers?
The Basic and Medium sets share and extend the same Beacon Robotics dataset (the Medium set adds a sales side: clients, orders, products). The Advanced set is reference-style questions, scenario, solution, and explanation, rather than one shared dataset, since several of its topics (concurrency, triggers, system design) aren't really "run this, get this result" exercises.
Can I run these SQL queries somewhere without installing a database?
Yes, each practice page links to a free online SQL playground (DB Fiddle for SQLite/PostgreSQL, SQL Fiddle for MySQL/SQL Server) so you can create the sample tables and actually run your own query before checking the shown solution.
How is this different from W3Schools' SQL tutorial?
Same one-topic-per-page structure, but every lesson adds a flow diagram, pros/cons where applicable, a worked exercise, common beginner mistakes, best practices, and interview questions, plus the multi-database coverage and the Beacon Robotics narrative tying every lesson together, none of which W3Schools' tutorial has.
The short version
15 modules, 105 lessons, 150 practice questions across three real tiers, every lesson checked across 6 databases instead of just one. Free, no signup, built as one consistent story instead of 105 disconnected syntax pages.
