SQL Programming Lessons

Choose your path and start learning SQL programming step by step.

advanced

Triggers and Automation

Learn about triggers, automated actions, and the concepts behind stored procedures in SQLite

22 min read
2 prerequisites

Window Functions

Learn to perform advanced calculations with ROW_NUMBER, RANK, PARTITION BY, LAG, LEAD, and running totals

26 min read
2 prerequisites

Database Design

Learn database normalization, entity-relationship modeling, primary and foreign keys, and constraints

28 min read
2 prerequisites

Migrations

Learn to evolve your database schema safely with ALTER TABLE, data migrations, and backward compatibility

22 min read
2 prerequisites

Capstone Project

Design and query a complete e-commerce database combining products, orders, customers, and analytics

35 min read
3 prerequisites

Recursive Queries

Learn how to write recursive SQL queries using Common Table Expressions to traverse hierarchical data, generate sequences, and solve problems that require self-referencing logic

25 min read
5 prerequisites

JSON in SQL

Learn how to store, query, and manipulate JSON data directly in SQL using JSON functions, path expressions, and table-valued functions to handle semi-structured data without leaving your database

25 min read
6 prerequisites

Triggers and Events

Learn how to automate database logic with SQL triggers — special procedures that fire automatically when data changes — to enforce business rules, maintain audit trails, and keep derived data consistent without relying on application code

25 min read
6 prerequisites

Query Optimization

Learn how to write faster, more efficient SQL queries by understanding execution plans, index usage, and common performance pitfalls — so your database does less work to return the same results

28 min read
7 prerequisites