All roadmaps
SQL developer
SQL developer path
Go from your first SELECT to joins, CTEs, window functions and fast queries, with practice at every stage.
- about 12 weeks at an hour a day
- 6 stages, 39 steps
How databases work
about 1 week · 4 stepsAfter this stage: You can describe tables, keys and relationships.
Query like a developer
about 3 weeks · 13 stepsAfter this stage: You can answer most reporting questions with one clean query.
- NULL handlingLessonLockedThree-valued logic and its traps.05
- Aggregations and groupingLessonLockedGROUP BY and HAVING.06
- Multi-table joinsLessonLockedINNER, LEFT and what each keeps.07
- Subqueries and CTEsLessonLockedBreak a hard query into steps.08
- CASE expressionsLessonLockedif and else inside a query.09
- Window functionsLessonLockedRank, running totals and LAG.10
- SQL 50 practice sheetPractice50 ordered problems.11
- Set operationsLessonLockedUNION, INTERSECT and EXCEPT.12
- Recursive CTEsLessonLockedWalk org charts and category trees.13
- Querying JSON columnsLessonLockedSemi-structured data inside SQL.14
- Pivoting and unpivotingLessonLockedReshape results for reports.15
- Advanced aggregationsLessonLockedGrouping sets, rollup and cube.16
- Advanced analytics patternsLessonLockedFunnels, retention and gaps.17
Change data safely
about 2 weeks · 5 stepsAfter this stage: You can insert, update, delete and clean data without losing rows.
- SQL that changes dataLessonLockedINSERT, UPDATE, DELETE and CREATE.18
- Data cleaning and string/date workLessonLockedFix text and dates inside the query.19
- Deduplication and upsertsLessonLockedRemove repeats and load only what changed.20
- Case study: update old rows, add new rowsCase studyAn upsert on real-looking data.21
- Case study: the duplicate click problemCase studyFind repeats before they inflate a number.22
Fast and correct
about 2 weeks · 8 stepsAfter this stage: You can read a query plan and explain why a query is slow.
- Indexing and optimizationLessonLockedWhy an index helps and what it costs.23
- Query plans: hash, merge, nested loopLessonLockedRead what the engine decided.24
- Transactions, ACID and isolationLessonLockedWhat happens when two writers meet.25
- Case study: who earns more than their manager?Case studyA self join in a small company.26
- SQL projectsProjectCohort, window and tuning capstones.27
- Partitioning and clusteringLessonLockedHow big tables stay quick to scan.28
- Views vs materialized viewsLessonLockedReuse logic without repeating it.29
- PK, FK and CHECK constraintsLessonLockedLet the database reject bad rows.30
Design the schema
about 3 weeks · 6 stepsAfter this stage: You can design tables, keys and a reporting model and defend the trade-offs.
- Normalization vs denormalizationLessonLockedWhen to split tables and when to flatten them.31
- OLTP vs OLAP mental modelLessonLockedTwo workloads, two designs.32
- Star schema: facts, dimensions, grainLessonLockedThe standard reporting shape.33
- Surrogate keys and conformed dimensionsLessonLockedKeys that survive change.34
- Slowly changing dimensionsLessonLockedKeep history when a value changes.35
- Capstone: model a star from ordersLessonLockedDesign one end to end.36
Interview round
about 1 week · 3 stepsAfter this stage: You can explain your queries and answer the usual questions.