Free course · 18 lessons
Free SQL Course
Query databases with SELECT, JOINs, GROUP BY, subqueries and window functions.
SQL, short for Structured Query Language, is the standard way to ask a database questions. You use it to find rows, add them up, join tables together and change the data stored inside. Analysts, developers and anyone whose spreadsheets have grown too big use it every day. This free SQL course is for complete beginners and needs no programming background, no account and no email address.
The outline lists every lesson in order. It starts with what SQL is, setting up a database and how to approach learning it, then works through SELECT and WHERE, sorting with ORDER BY and LIMIT, JOINs across tables, GROUP BY and HAVING, and totals with COUNT, SUM and AVG. Next come changing data with INSERT, UPDATE and DELETE, creating tables with primary and foreign keys, subqueries and CTEs, and window functions. Later lessons handle CASE and NULL, dates, text and UNION, then indexes, views and stored procedures, and the course ends with practice questions and interview preparation.
Start at lesson 1 and work down. When you finish a lesson, tick "Mark lesson complete" and the progress bar keeps your place, saved only in your browser. The examples stick to standard SQL where they can and point out where PostgreSQL, MySQL, SQLite and SQL Server differ. Lessons are published one at a time; any marked "Coming soon" isn't live yet.
Saved in this browser only. No account needed.
Lessons are being published in order. Each one becomes a link below as soon as it's ready.
Course outline
- 1What is SQL + setupComing soon
- 2How to learn SQLComing soon
- 3SELECT + WHEREComing soon
- 4ORDER BY + LIMITComing soon
- 5JOINsComing soon
- 6GROUP BY + HAVINGComing soon
- 7COUNT, SUM, AVGComing soon
- 8INSERT, UPDATE, DELETEComing soon
- 9CREATE TABLE + keysComing soon
- 10Subqueries + CTEsComing soon
- 11Window functionsComing soon
- 12CASE + NULLComing soon
- 13Dates in SQLComing soon
- 14Strings in SQLComing soon
- 15UNIONComing soon
- 16Indexes, views, proceduresComing soon
- 17SQL practice + interviewComing soon
- 18SQL tips + how-tosComing soon
Frequently asked questions
Is this SQL course really free?
Yes. Every lesson is free, with no sign-up, email, time limit or paywall. Your progress is stored in your own browser.
What's the difference between SQL and MySQL, PostgreSQL or SQL Server?
SQL is the language. MySQL, PostgreSQL, SQLite and SQL Server are database systems that understand it. Each adds its own extensions (Microsoft's is called T-SQL), so a query sometimes needs small changes to move between them.
Is there an official SQL standard?
Yes. SQL is defined by the international standard ISO/IEC 9075, and the most recent revision is SQL:2023. No database follows every part of it, which is why the lessons flag the differences.
Which database should a beginner use?
SQLite is the easiest start: it's free, public domain and runs without a separate server. PostgreSQL is a free, full-size alternative; its newest major version is PostgreSQL 19.
Do I need to know programming to learn SQL?
No. SQL reads more like structured English than a general programming language, and the course assumes no coding experience. If you've used a spreadsheet, tables, rows and columns will already feel familiar.