A complete, portable SQL course map—from a first SELECT query to production-minded schemas, transactions, permissions, performance, and data operations.
Build the data model before the query gets complex.
Beginners and working developers who want a durable database foundation before working with PostgreSQL, MySQL, SQLite, ORMs, reporting tools, or production applications. Published lessons include runnable SQL, guided practice, and a knowledge quiz. The remaining course topics stay visible but do not link to unfinished pages.
INNER, LEFT, RIGHT, and FULL joinsChoose the join that matches the question and predict which rows remain when a relationship is missing.
13 · Planned
Self joins and many-to-many dataModel hierarchies and bridge tables without duplicating records or losing the meaning of a relationship.
14 · Planned
Subqueries and correlated subqueriesUse nested queries when they express the problem clearly, and recognize when a join or CTE is safer.
15 · Planned
UNION, INTERSECT, and EXCEPTCombine compatible result sets and understand how each set operation handles duplicates.
16 · Planned
05
Designing reliable schemas
CREATE TABLE and schema designTurn an application requirement into tables, columns, and names that stay understandable as the system grows.
17 · Planned
Constraints and data integrityUse NOT NULL, UNIQUE, CHECK, DEFAULT, and foreign keys so invalid data is rejected at the right boundary.
18 · Planned
Normalization and intentional denormalizationReduce duplication and update anomalies, then identify the rare cases where a denormalized shape is justified.
19 · Planned
Views and materialized viewsCreate reusable, safe interfaces to complex data and know when a stored result needs refreshing.
20 · Planned
06
Writing and protecting data
INSERT, UPDATE, and DELETEChange records intentionally, target the right rows, and preview a data change before it reaches production.
21 · Planned
Upserts and conflict handlingInsert or update safely when a row may already exist, without relying on fragile application-side checks.
22 · Planned
Transactions and savepointsGroup related changes into all-or-nothing work and recover safely when one step cannot succeed.
23 · Planned
Isolation, locks, and concurrencyUnderstand simultaneous access, deadlocks, and the trade-offs that protect correctness under load.
24 · Planned
07
Performance and administration
Indexes and access pathsChoose indexes that help real queries while understanding their storage and write-time costs.
25 · Planned
EXPLAIN and query plansRead a query plan, find expensive work, and verify whether an optimization actually changes execution.