Skip to content
Codeloom

Courses / Beginner

SQL Mastery

From SELECT to production-grade queries.

Go from basic queries to advanced SQL — joins, window functions, CTEs, indexing, query optimization, transactions, and more. Covers PostgreSQL, MySQL, and SQLite differences.

6 modules 29 lessons ~14h Certificate of completion

Your progress

0 / 29

Click "Mark complete" at the bottom of each lesson to track progress. Progress is saved locally in your browser.

Syllabus

  1. Module 1

    SQL Foundations

    Learn what SQL is, write your first queries, create tables, and understand how joins connect data across tables.

    5 lessons
    1. What Is SQL?
    2. SELECT Basics
    3. Creating Tables and Inserting Data
    4. Introduction to Joins
    5. Joins Deep Dive — Inner, Outer, and Cross
  2. Module 2

    Aggregation and Subqueries

    Group and summarize data with aggregate functions, then break complex queries into manageable pieces using subqueries and CTEs.

    5 lessons
    1. Aggregate Functions and GROUP BY
    2. Subqueries and CTEs
    3. Common Table Expressions In Depth
    4. Recursive CTEs
    5. CTE vs Subquery vs Temp Table
  3. Module 3

    Window Functions

    Master window functions to perform calculations across rows without collapsing your result set.

    4 lessons
    1. Introduction to Window Functions
    2. Window Functions Complete Guide
    3. Window Functions Tutorial
    4. Pivot and Unpivot Patterns
  4. Module 4

    Indexing and Performance

    Understand how indexes work under the hood, read query plans, and optimize slow queries for production workloads.

    5 lessons
    1. Indexes and Performance
    2. B-Tree vs Hash vs GIN Indexes
    3. Indexing Strategies Guide
    4. EXPLAIN and Query Planning
    5. Query Optimization
  5. Module 5

    Transactions and Data Integrity

    Ensure data correctness with transactions, isolation levels, normalization, and strategies for preventing deadlocks.

    5 lessons
    1. Transactions and Isolation Levels
    2. Transaction Isolation Levels Deep Dive
    3. ACID vs BASE Explained
    4. Database Normalization
    5. Deadlock Detection and Prevention
  6. Module 6

    Advanced SQL

    Explore advanced features like JSON operations, materialized views, full-text search, row-level security, and stored procedures.

    5 lessons
    1. JSON Operations in PostgreSQL
    2. Materialized Views Guide
    3. Full-Text Search Implementation
    4. Row-Level Security
    5. Stored Procedures vs Functions

Certificate of completion

When every lesson is marked complete, the certificate becomes available below.

Get your certificate →