HOME / CATALOG / SQL
01
ROADMAP / BEGINNER

SQL

39 TOPICS · 20 HOURS · BEGINNER · SCALE 1:4
START CANVAS

A comprehensive learning roadmap for SQL — from writing your first SELECT to advanced query optimization, window functions, and database design.


§ SYLLABUS

§ SECTION 01 · SQL FUNDAMENTALS
  1. 01
    The Relational Model

    Understand how data is organized into tables with rows and columns, and why relational databases use this structure.

  2. 02
    SELECT & FROM

    Write basic queries to retrieve columns from a single table and understand how SQL processes a query.

  3. 03
    Common Data Types

    Learn the main SQL data types — integers, text, dates, booleans, decimals — and when to use each one.

  4. 04
    NULL Values

    Understand what NULL means in SQL, how it behaves in comparisons and expressions, and how to handle it with IS NULL and COALESCE.

  5. 05
    SQL Fundamentals Complete

    You can write basic SELECT queries and understand how relational databases organize data.

§ SECTION 02 · FILTERING & SORTING
  1. 01
    WHERE Clause

    Filter rows using comparison operators, BETWEEN, IN, LIKE, and combine conditions with AND, OR, and NOT.

  2. 02
    ORDER BY & LIMIT

    Sort results by one or more columns and restrict the number of rows returned.

  3. 03
    DISTINCT & Aliases

    Remove duplicate rows from results and rename columns or tables with aliases for readability.

  4. 04
    Filtering & Sorting Complete

    You can retrieve exactly the subset of data you need, sorted and de-duplicated.

§ SECTION 03 · JOINS & RELATIONSHIPS
  1. 01
    INNER JOIN

    Combine rows from two tables where a matching condition is met, which is the most common type of join.

  2. 02
    LEFT & RIGHT JOIN

    Retrieve all rows from one table even when there is no match in the other, filling gaps with NULLs.

  3. 03
    FULL & CROSS JOIN

    Understand FULL OUTER JOIN for preserving unmatched rows from both sides, and CROSS JOIN for generating all combinations.

  4. 04
    Self Joins

    Join a table to itself to compare rows within the same dataset, such as finding employees and their managers.

  5. 05
    Joins Complete

    You can combine data from multiple tables using the right join type for each situation.

§ SECTION 04 · AGGREGATION & GROUPING
  1. 01
    Aggregate Functions

    Use COUNT, SUM, AVG, MIN, and MAX to compute summary statistics across rows.

  2. 02
    GROUP BY

    Group rows that share a value and apply aggregate functions to each group independently.

  3. 03
    HAVING Clause

    Filter groups after aggregation, which WHERE cannot do because it runs before grouping.

  4. 04
    Aggregation Complete

    You can summarize and group data to produce reports and statistics.

§ SECTION 05 · SUBQUERIES & CTES
  1. 01
    Subqueries

    Nest a query inside another query to use one result set as input for filtering, comparison, or derived tables.

  2. 02
    Common Table Expressions (CTEs)

    Use WITH clauses to name temporary result sets, making complex queries readable and reusable within a statement.

  3. 03
    UNION, INTERSECT & EXCEPT

    Combine result sets from multiple queries vertically — stacking, finding overlap, or computing differences.

  4. 04
    Subqueries & CTEs Complete

    You can break complex problems into composable query building blocks.

§ SECTION 06 · DATA MODIFICATION
  1. 01
    INSERT

    Add new rows to a table, including bulk inserts and inserting from the results of a SELECT query.

  2. 02
    UPDATE & DELETE

    Modify existing rows or remove them, and understand why a WHERE clause is critical for safety.

  3. 03
    Transactions

    Group multiple statements into an atomic unit with COMMIT and ROLLBACK so partial failures don't corrupt data.

  4. 04
    Data Modification Complete

    You can safely insert, update, and delete data with transactional guarantees.

§ SECTION 07 · SCHEMA DESIGN & CONSTRAINTS
  1. 01
    CREATE TABLE & ALTER TABLE

    Define new tables, add or drop columns, and modify table structure as requirements evolve.

  2. 02
    Constraints & Keys

    Enforce data integrity with PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, CHECK, and DEFAULT constraints.

  3. 03
    Normalization

    Organize tables to reduce redundancy and prevent update anomalies, understanding 1NF through 3NF.

  4. 04
    Views

    Create virtual tables from saved queries to simplify access, encapsulate logic, and control what users can see.

  5. 05
    Schema Design Complete

    You can design normalized database schemas with proper constraints and relationships.

§ SECTION 08 · ADVANCED SQL
  1. 01
    Window Functions

    Perform calculations across related rows without collapsing them — ROW_NUMBER, RANK, LAG, LEAD, and running totals.

  2. 02
    Recursive CTEs

    Traverse hierarchical or graph-like data such as org charts or category trees using self-referencing CTEs.

  3. 03
    CASE Expressions & Pivoting

    Use conditional logic inside queries to transform rows into columns or categorize data on the fly.

  4. 04
    Advanced SQL Complete

    You can write sophisticated analytical queries using window functions and recursive patterns.

§ SECTION 09 · PERFORMANCE & OPTIMIZATION
  1. 01
    Indexes

    Understand how indexes speed up reads, the trade-off with write performance, and when to create or avoid them.

  2. 02
    EXPLAIN & Query Plans

    Read execution plans to understand how the database engine processes your query and spot bottlenecks.

  3. 03
    Query Optimization Patterns

    Rewrite slow queries using techniques like avoiding SELECT *, reducing subquery overhead, and leveraging indexes effectively.

  4. 04
    Performance Complete

    You can analyze and optimize SQL queries for real-world workloads.