MySQL Curriculum
A complete, progressive curriculum for learning MySQL. Designed for self-study and classroom use. Each stage builds on the previous one.
Foundations
Core concepts and first steps
What is a Database?
ConceptsUnderstand databases, tables, rows, columns, data types, and primary keys.
SQL Fundamentals
Learn SQL vocabulary, then run your first CREATE DATABASE and USE statements.
Your First Table
Create tables, insert data, query it back with SELECT and WHERE.
Modifying Data
Update existing rows, delete rows, and learn safety rules.
Filtering & Sorting
Narrow results with AND/OR, LIKE patterns, ORDER BY, LIMIT, and DISTINCT.
Intermediate
Joins, aggregation, and schema design
Joins
Combine data from multiple tables using INNER JOIN and LEFT JOIN.
Aggregation
Count, sum, and group data with COUNT, SUM, AVG, GROUP BY, and HAVING.
Table Constraints
Enforce data integrity with UNIQUE, NOT NULL, DEFAULT, and FOREIGN KEY.
Indexes & Performance
Speed up queries with indexes and learn to use EXPLAIN.
Putting It All Together
Build a complete schema from scratch with a real-world scenario.
Advanced
Complex queries and advanced patterns
Modifying Schema
Change table structure with ALTER TABLE, DROP, and schema inspection commands.
Subqueries
Nest queries inside other queries to solve complex problems step by step.
Advanced Joins & Set Operations
Complete your join toolkit with RIGHT JOIN, UNION, and multi-table modifications.
CASE, Views & Transactions
Add conditional logic with CASE, store reusable queries with views, and protect data with transactions.
Functions & Upserts
Transform data with string and date functions, and handle duplicates with upsert patterns.
Window Functions
Compute rankings, running totals, and row-by-row comparisons without collapsing rows.
Common Table Expressions
Write readable complex queries with WITH ... AS and explore hierarchies with recursive CTEs.
Self Joins & NULL Handling
Join a table to itself and handle NULL values with COALESCE, IFNULL, and NULLIF.
JSON & Advanced Data Types
Store flexible data with JSON and understand the nuances of MySQL data types.
Expert
Security, performance, and administration
Procedures, Triggers & Security
Encapsulate logic with stored procedures, automate actions with triggers, and prevent SQL injection.
User Management & Privileges
Control who can access your database and what they can do with CREATE USER, GRANT, and REVOKE.
Isolation Levels & Character Sets
Control concurrent transaction behavior and store international text correctly with utf8mb4.
Locking & Deadlocks
Prevent race conditions with row-level locking and understand how deadlocks happen and how MySQL resolves them.
Assessment Topics
Quizzes with 102 total questions across 8 topics
Basics
Database concepts, SQL fundamentals, and data types
Tables & DDL
CREATE TABLE, constraints, ALTER TABLE, and schema design
Modifying Data
INSERT, UPDATE, DELETE, functions, and upserts
Querying
Filtering, sorting, aggregation, and GROUP BY
Joins
INNER, LEFT, RIGHT, self joins, and set operations
Subqueries & CTEs
Subqueries, correlated subqueries, CTEs, and recursive queries
Advanced SQL
Indexes, window functions, JSON, transactions, and locking
Admin & Security
User management, privileges, procedures, and triggers
For Educators
- •All 23 stages are free and require no accounts
- •Each stage includes interactive SQL examples students can run in the playground
- •Quiz questions cover all major MySQL topics with detailed explanations
- •Students can track their own progress via tutorial completion and quiz scores
- •Link directly to specific stages: mastersql.sedihub.com/tutorials/6-joins