SQL · Lessons

SQL lessons

12 sections · 75 skills · work through the full outline skill by skill — read the long-form lesson or flip through the slide-style version.
Long-form lessonsSlide-style lessons

SQL

Practice 75 skills across this outline.

Recommended next
Normalization
Database Design
Long-form lesson
Weighting distribution
20 categories
Database Design
8%
SQL for Analytics and Reporting
8%
Performance and Optimization
8%
Window Functions
8%
SQL Foundations · Relational Data Concepts
6%
Subqueries and CTEs · Common Table Expressions (CTEs)
6%

Skills

The comprehensive taxonomy of sql — drill into a card to work its skills.

Database Design

3 core skills8% total weight
0/3 completed
3 skills to mastery
1
NormalizationRecommended
2
Primary & Foreign KeysAvailable
3
Many-to-Many ModelingAvailable

SQL for Analytics and Reporting

4 core skills8% total weight
0/4 completed
4 skills to mastery
1
Communicating Query AssumptionsAvailable
2
Defining & Implementing MetricsAvailable
3
Parameterized Reporting QueriesAvailable
4
Cohort & Segmentation QueriesAvailable

Data Definition and Manipulation · DDL Basics

3 core skills4% total weight
0/3 completed
3 skills to mastery
1
CREATE TABLEAvailable
2
ALTER TABLEAvailable
3
Table ConstraintsAvailable

Data Definition and Manipulation · DML Basics

4 core skills4% total weight
0/4 completed
4 skills to mastery
1
DELETE with WHEREAvailable
2
INSERTAvailable
3
TransactionsAvailable
4
UPDATE with WHEREAvailable

Aggregation and Grouping · Aggregate Functions

4 core skills5% total weight
0/4 completed
4 skills to mastery
1
Basic Aggregate FunctionsAvailable
2
COUNT(*) vs. COUNT(column)Available
3
Computing Derived AggregatesAvailable
4
Aggregates with WHEREAvailable

Aggregation and Grouping · GROUP BY and HAVING

4 core skills3% total weight
0/4 completed
4 skills to mastery
1
Grouping SetsAvailable
2
GROUP BYAvailable
3
HAVING for Group FilteringAvailable
4
Avoiding Non-Aggregated ColumnsAvailable

Data Transformation · Case Expressions and Conditional Logic

3 core skills4% total weight
0/3 completed
3 skills to mastery
1
COALESCE & IFNULLAvailable
2
CASE WHEN for CategoriesAvailable
3
Creating Flags & BucketsAvailable

Data Transformation · String and Date Functions

3 core skills4% total weight
0/3 completed
3 skills to mastery
1
String FunctionsAvailable
2
Date Range FilteringAvailable
3
Date/Timestamp ParsingAvailable

Data Quality and Debugging · Common SQL Pitfalls

4 core skills4% total weight
0/4 completed
4 skills to mastery
1
Integer Division in MetricsAvailable
2
LEFT JOIN Filtering PitfallAvailable
3
Join Duplication IssuesAvailable
4
Three-Valued Logic & NULLAvailable

Data Quality and Debugging · Validation and Sanity Checks

4 core skills4% total weight
0/4 completed
4 skills to mastery
1
Identifying DuplicatesAvailable
2
Reconciling AggregatesAvailable
3
Checking NULL RatesAvailable
4
Validating Row CountsAvailable

Joins and Relationships · Join Types and Keys

5 core skills5% total weight
0/5 completed
5 skills to mastery
1
Multi-Key JoinsAvailable
2
Avoiding Join MistakesAvailable
3
RIGHT JOIN & FULL OUTER JOINAvailable
4
INNER JOINAvailable
5
LEFT JOINAvailable

Joins and Relationships · Multi-Table Joins and Self-Joins

3 core skills4% total weight
0/3 completed
3 skills to mastery
1
Bridge TablesAvailable
2
Self-JoinsAvailable
3
Multi-Table JoinsAvailable

Performance and Optimization

3 core skills8% total weight
0/3 completed
3 skills to mastery
1
Indexes for PerformanceAvailable
2
Index BasicsAvailable
3
EXPLAIN/QUERY PLANAvailable

Querying Data · SELECT and Filtering

5 core skills5% total weight
0/5 completed
5 skills to mastery
1
IS NULL / IS NOT NULLAvailable
2
SELECT QueriesAvailable
3
WHERE FilteringAvailable
4
DISTINCTAvailable
5
IN, BETWEEN & LIKEAvailable

Querying Data · Sorting and Limiting

3 core skills3% total weight
0/3 completed
3 skills to mastery
1
Multi-Column OrderingAvailable
2
LIMIT/TOPAvailable
3
ORDER BYAvailable

SQL Foundations · Relational Data Concepts

5 core skills6% total weight
0/5 completed
5 skills to mastery
1
Identifying KeysAvailable
2
Tables, Rows & SchemasAvailable
3
NULL & MissingnessAvailable
4
Set-Based ThinkingAvailable
5
Table RelationshipsAvailable

SQL Foundations · SQL Query Structure

3 core skills2% total weight
0/3 completed
3 skills to mastery
1
Table AliasesAvailable
2
SQL Logical OrderAvailable
3
SQL Dialect DifferencesAvailable

Window Functions

5 core skills8% total weight
0/5 completed
5 skills to mastery
1
Window Functions & GROUP BYAvailable
2
LAG/LEADAvailable
3
Running Totals & Moving AveragesAvailable
4
Ranking FunctionsAvailable
5
Windowed AggregatesAvailable

Subqueries and CTEs · Subqueries

4 core skills3% total weight
0/4 completed
4 skills to mastery
1
EXISTS vs. INAvailable
2
Correlated SubqueriesAvailable
3
Subqueries in WHEREAvailable
4
Scalar SubqueriesAvailable

Subqueries and CTEs · Common Table Expressions (CTEs)

3 core skills6% total weight
0/3 completed
3 skills to mastery
1
Common Table Expressions (CTEs)Available
2
Multiple CTEsAvailable
3
Recursive CTEsAvailable