← Back to Home

SQL Lessons

Learn SQL from scratch with interactive, step-by-step lessons

Beginner

Start Here

Introduction to SELECT

beginner

Learn the basics of querying data with SELECT statements. Understand how to retrieve specific columns from a table.

SELECTFROMColumn selection
10 min📊 Blog Dataset
Coming Soon

Filtering Data with WHERE

beginner

Master the WHERE clause to filter rows based on conditions. Learn about comparison operators and logical conditions.

WHEREConditionsOperators
15 min📊 Blog Dataset
Coming Soon

Sorting and Limiting Results

beginner

Use ORDER BY to sort your results and LIMIT to control how many rows are returned.

ORDER BYLIMITASCDESC
12 min📊 Shop Dataset
Coming Soon

Intermediate

Understanding JOINs

intermediate

Learn how to combine data from multiple tables using INNER JOIN. See how tables relate to each other.

INNER JOINForeign KeysRelationships
20 min📊 Blog Dataset
Coming Soon

LEFT JOIN Explained

intermediate

Understand the difference between INNER and LEFT JOINs. Learn when to use LEFT JOIN and see null-extended rows.

LEFT JOINNULL valuesOuter joins
18 min📊 Shop Dataset
Coming Soon

Aggregate Functions

intermediate

Use COUNT, SUM, AVG, MIN, and MAX to perform calculations on your data.

COUNTSUMAVGMINMAX
20 min📊 Shop Dataset
Coming Soon

Advanced

Grouping with GROUP BY

advanced

Learn to group rows and perform aggregate calculations on each group.

GROUP BYHAVINGAggregates
25 min📊 Shop Dataset
Coming Soon

Many-to-Many Relationships

advanced

Master complex JOINs with junction tables. Learn to query many-to-many relationships.

Multiple JOINsJunction tablesComplex queries
30 min📊 Movies Dataset
Coming Soon

Ready to explore on your own?

Try the playground to write and execute your own SQL queries

Open Playground →