We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Learn SQL

Learn the fundamentals of Structured Query Language (SQL), the most popular way to interact with database systems like MySQL, PostgreSQL, and SQLite.

What will you learn?

Learn all the basics of Structured Query Language in this comprehensive SQL course. You'll build out real database tables and practice querying them in flexible ways right in the browser. Not only will you understand how to use SQL, but you'll also learn in what situations you should use it. We will cover architectural design patterns and how to use SQL in a production environment.

Chapter List

1
Introduction
Learn about the basics of SQL and how it came to be
2
Tables
Create new tables and learn how to structure data efficiently
3
Constraints
Learn how to keep data accurate and up to date
4
CRUD
Create, read, update and delete information from a SQL database
5
Basic Queries
Practice additional clauses and features that SQL offers for more flexible querying
6
Structuring
Learn how to order and limit the data returned in large query sets
7
Aggregations
Learn how to run powerful calculations on entire datasets
8
Subqueries
Practice the advanced technique of nesting queries inside one another
9
Normalization
Learn how to normalize a database in order to keep it's data consistent and accurate
10
Joins
Practice joining multiple tables together in order to power real world usecases
11
Performance
Learn how to keep databases running fast and efficient in production

Join 3,056 students in the Learn SQL course

Read reviews of their learning experiences

This lesson exceeded my expectations. I went in thinking I knew the basics, but the deeper dives into trade-offs and edge cases were exactly what I needed. The instructor didn’t just show ‘happy path’ solutions: they demonstrated how to think about failure modes, performance bottlenecks, and future extensibility. The capstone project, while optional, gave me the perfect sandbox to experiment and get feedback.

(4/5)
So Vesali profile image

So Vesali

Kansas City, KS

Loved the pacing and depth.

(5/5)
Math  profile image

Math

Luzern, Switzerland

Helpful examples and explanations.

(4/5)
UFifty50  profile image

UFifty50

Land of the Pog

Great lesson, super clear.

(4/5)
Kevin Hernández Rostrán profile image

Kevin Hernández Rostrán

San José, Costa Rica

Challenging but rewarding.

(4/5)
Lekan Adeyeri profile image

Lekan Adeyeri

boston, ma

Short but impactful—taught me exactly what I needed.

(4/5)
Karida Chen profile image

Karida Chen

Toronto, Canada

Helpful examples and explanations.

(5/5)
Fabio Hirt profile image

Fabio Hirt

Rombach, Switzerland

Helpful examples and explanations.

(3/5)
Aleksandar Popovic profile image

Aleksandar Popovic

18229 Mozgovo, Aleksinac, Serbia

I appreciated how the instructor broke down the core concepts into digestible steps. The examples were practical and mirrored what I encounter in my day-to-day work. In particular, the section on error handling and observability tied everything together. If I had a minor nitpick, it would be that the pacing sped up in the last module, but the accompanying notes and code samples made it easy to revisit and cement the ideas.

(4/5)
Aamer Baig profile image

Aamer Baig

Lahore, Pakistan

Showing 1-9 of 10

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.