← All roadmaps
Data · Very High demand

SQL & Databases roadmap

SQL is required for backend, data analyst, and data science roles. Nearly every company stores data in relational databases, and SQL interviews are standard.

beginner

SQL Foundations

About 3 weeks

Topics

  • SELECT, WHERE, ORDER BY, LIMIT
  • Filtering with AND, OR, NOT, LIKE, IN, BETWEEN
  • Aggregate functions: COUNT, SUM, AVG, MIN, MAX
  • GROUP BY and HAVING
  • Handling NULLs and data types
  • INSERT, UPDATE, DELETE safely
  • Sorting, pagination, and DISTINCT

Free resources

Hands-on practice

  1. Write 50 queries against a sample e-commerce dataset
  2. Build a movie-ratings database and answer 10 analytics questions
  3. Normalize a messy spreadsheet into 3 related tables
  4. Complete SQLBolt lessons 1-10 with all exercises
Milestone checkpoint: You can query confidently: 50 queries written, the movie database answers all 10 questions correctly, and you can explain GROUP BY vs WHERE filtering.
intermediate

Joins, Subqueries and Real Databases

About 5 weeks

Topics

  • INNER, LEFT, RIGHT, and FULL joins
  • Subqueries and common table expressions (CTEs)
  • Window functions: ROW_NUMBER, RANK, LAG, LEAD
  • Views and basic indexing
  • Transactions and ACID properties
  • PostgreSQL types, constraints, and keys
  • Loading CSVs with psql and pgAdmin

Free resources

Hands-on practice

  1. Solve 30 LeetCode database problems
  2. Rewrite 10 subqueries as CTEs and window functions
  3. Design a small app schema with keys and constraints
  4. Load a 1M-row CSV into Postgres and query it
Milestone checkpoint: You write real-world SQL: 30 problems solved, CTEs and window functions used fluently, and your schema has proper keys, constraints, and indexes.
advanced

Database Engineering

About 7 weeks

Topics

  • Query optimization and indexing strategies
  • Reading EXPLAIN ANALYZE output
  • Normalization to 3NF and denormalization trade-offs
  • Stored procedures, functions, and triggers
  • Backups, replication, and point-in-time recovery
  • NoSQL overview: MongoDB documents and Redis caching
  • Star schema modeling for analytics

Free resources

Hands-on practice

  1. Optimize 5 slow queries: show before/after EXPLAIN plans
  2. Design a star schema for an analytics dashboard
  3. Build a Redis cache layer in front of a slow query
  4. Set up automated Postgres backups and test a restore
Milestone checkpoint: You engineer databases: slow queries fixed with evidence, a working star schema, Redis caching demonstrated, and a tested backup/restore you can explain.

Track your progress

Sign in to mark stages complete and watch your roadmap fill up on your dashboard.

Sign in