SQL basics
-
What SQL is, the relational model, and the users/orders/products schema used throughout this section.
-
SELECT, WHERE, comparison and logical operators, LIKE, IN, BETWEEN, ORDER BY, and LIMIT.
-
COUNT, SUM, AVG, MIN, MAX, GROUP BY, and the difference between WHERE and HAVING.
Sales questions
Load a sample sales dataset and answer ten business questions — top customers, monthly revenue, best products — in SQL.
Advanced SQL
-
Subqueries in WHERE and FROM, correlated subqueries, common table expressions, and recursive CTEs.
-
ROW_NUMBER, RANK, DENSE_RANK, LAG/LEAD with PARTITION BY, running totals, and top-N-per-group.
-
Reading a query plan conceptually, plus classic puzzles: gaps in a sequence, second-highest value, and hierarchical self-joins.
-
B-tree vs GIN vs GiST indexes, reading EXPLAIN ANALYZE, and partial indexes.
Analytics report
Rank, running-total and cohort-retention queries with window functions, then speed up the slowest with an index.
Database design
-
Why schema design matters and the process: identifying entities, relationships, and constraints.
-
1NF, 2NF, and 3NF explained with a before/after example, and when to deliberately denormalize.
-
What to index, composite index column order, and the real costs of over-indexing.
-
Atomicity, consistency, isolation, and durability, each explained with a concrete failure example.
-
A complete worked example: entity identification, normalization decisions, and the final schema for an e-commerce order system.
Design a booking system
An ER diagram and normalised schema for a clinic booking system, with constraints, indexes and a transaction for booking.
NoSQL & scale
-
Embedding vs referencing, the core MongoDB modeling decision, and schema validation rules.
-
Strings, hashes, lists, sets, and sorted sets with real commands, including a leaderboard example.
-
Primary-replica setup, binlog-based replication, GTIDs, replication lag, and read/write splitting.
-
Indexing, read replicas, sharding strategies, and the trade-offs of each.
-
Real SQL interview questions and answers covering joins, subqueries, NULL handling, and more.
Polyglot persistence
Add a Redis cache and a MongoDB activity log next to your relational schema, and explain what each store is for.
Finish line: prove it
Finished the roadmap? Turn it into proof employers trust.
🏆 Earn a free Skill Forge certificate
🧭 Where to go next
SQL & Databases Roadmap FAQ
How long does it take to learn SQL?
Should I learn MySQL or PostgreSQL?
Do I need SQL if I use an ORM?
When should I use NoSQL?
Keep going after this roadmap
Backend Developer Roadmap
Everything a modern backend developer needs — from Linux, HTTP and SQL to APIs, security, caching, queues, Docker and system design.
- 1Foundations
- 2APIs & databases
- 3Security & performance
- 4Async & messaging
- 5Ship to production
- 6Architecture
System Design Roadmap
The concepts and practice problems that come up in every system design interview and every real large-scale system.
- 1Core concepts
- 2Data & messaging
- 3Production concerns
- 4Practice
AI Engineer Roadmap
A step-by-step path from Python basics to building, fine-tuning and shipping LLM apps, RAG systems and AI agents.
- 1Programming foundations
- 2Machine & deep learning
- 3LLMs & generative AI
- 4Build AI applications
- 5Customise, evaluate & ship