Learn SQL
Interactive Online Course

Master SQL with hands-on exercises that mirror real work — write queries in your browser and prep for tech interviews

315K+

more than 315K satisfied users

Who Should Learn SQL

For Analysts
Deepen your knowledge in your field and acquire the necessary skills for productive work
For Developers
Learn to work optimally with relational databases
For Testers
Improve the quality of database testing and learn to automate testing processes
For Students
Master the basics of working with databases and gain practical skills that will be useful in your future career

With us you study at a convenient time for you and at a pace convenient for you

With us you will go through more than 60 topics and complete more than 70 tasks to reinforce the theory

Module 0
Introduction
In this short module, we'll take a look at how this course's platform works and learn how to get the most out of it. And also get information about our community.
Module 1
Fundamentals
This module is designed to give you a basic understanding of databases and fill in potential gaps. Also in this module, we will get acquainted with the terminology of relational DBMS.
Module 2
Basis of selection I
In this module we will learn how to write our first SQL queries, deal with such important concepts as conditional selection, sorting and data grouping.
ready to level up?

For those already fluent in SQL

Once the free course clicks, you write SQL with confidence. Where to go next is up to you — some head into performance, others into analytics, others into data architecture. We have an advanced course for each track — deep dives on real-world tasks.

SQL Query Optimization in PostgreSQL
Premium
PostgreSQL
10 hours
Stop guessing why your queries are slow. Learn to read EXPLAIN, pick indexes for specific tasks, and speed up queries by 100x+ on real production cases.
  • Close 'this query is slow' tickets yourself — via EXPLAIN, indexes, statistics
  • Cut latency on slow production queries by 10–100×
  • Explain to your team why the planner picked this plan
Start learning
SQL for Data Analysis
Premium
MySQL
PostgreSQL
15 hours
Learn to answer product questions right in the database — no dumping into Python or BI tools. You'll master pivot tables, time series analysis, retention, funnels, and user segmentation — all in pure SQL.
  • Answer product questions in Slack in minutes, not days
  • Build cohorts, funnels, and retention in pure SQL — no Python exports
  • Stop hitting the GROUP BY ceiling — windows and time series handle 80% of cases
Start learning
DB Design and Architecture
Premium
PostgreSQL
15 hours
From the first table to a live system under load. Learn not to memorize answers but to spot the forks: which key, which type, which lock, how to migrate the schema without taking prod down.
  • Design schemas that won't be rewritten in a year under load
  • Implement tricky cases — history, hierarchies, JSONB — without code-side hacks
  • Ship migrations on big tables without 'we'll need a one-hour outage'
Start learning
All courses are included inPremium— along with AI hints, certificates, and everything else.

We truly have an interactive course, making learning more effective

Practice SQL with Real-World Tasks

Go to Simulator
Over 100 tasks close to real-life scenarios
Tasks are divided into several levels of difficulty
All your progress is saved

SQL Interview Questions from Top Companies

Test SQL assignment from an interview at Microsoft
Test SQL assignment from an interview at SAP
Test SQL assignment from an interview at TikTok
Test SQL assignment from an interview at BMW
Test SQL assignment from an interview at Spotify
Test SQL assignment from an interview at Twitter
Test SQL assignment from an interview at Zalando
Test SQL assignment from an interview at Klarna
Test SQL assignment from an interview at N26
Test SQL assignment from an interview at Microsoft
Test SQL assignment from an interview at SAP
Test SQL assignment from an interview at TikTok
Test SQL assignment from an interview at BMW
Test SQL assignment from an interview at Spotify
Test SQL assignment from an interview at Twitter
Test SQL assignment from an interview at Zalando
Test SQL assignment from an interview at Klarna
Test SQL assignment from an interview at N26

Earn a Verifiable SQL Certificate

Increase your chances of landing a job with a SQL certificate you can share on LinkedIn and your résumé

SQL Academy course completion certificate

Our Users Love Us

Anna — SQL Academy student review
Anna
After completing the course, I got promoted to data analyst. The course paid for itself in just one working day with my new salary!
Ruslan — SQL Academy student review
Ruslan
I was looking for interactive resources and found SQL Academy. This resource is 95% free, but the main thing is the quality of the material. Written in accessible language, understandable even for beginners.
Olya — SQL Academy student review
Olya
I thought SQL was overly complicated. But in SQL Academy everything is explained in detail! Excellent trainer with tasks of varying difficulty. You can complete it absolutely for free!
Lev — SQL Academy student review
Lev
Great interactive textbook for learning SQL basics. Will definitely continue learning on this platform.
Liza — SQL Academy student review
Liza
The site is great! Tasks are interesting, UX is at a high level! Verification based on query results, not the query itself like on other sites.
Nikolay — SQL Academy student review
Nikolay
Excellent presentation of the material! Very pleased with tasks from interviews at large IT companies.
Evgeny — SQL Academy student review
Evgeny
Everything is very accessible and concise, I'm wildly excited! You can't think of anything better!

FAQ

Why choose our courses?
  • We provide most of our functionality for free, so you can start learning without any investment and decide later if you want to get full access.
  • Our courses include many practical tasks, which help to consolidate the acquired knowledge in practice.
  • Affordable cost. We don't spend money on marketing, which allows us to keep prices loyal.
How much time should I dedicate to studying?
It's up to you. You can learn at your own pace. By dedicating 5 hours a week, you can complete the course in 2 months. With intensive training, you can complete the program and receive a certificate in just 2 weeks.
When can I start learning?
Our courses are self-paced, so you can start learning at any time.
Still have questions?
If you didn't find the answer to your question, you can ask it at feedback@sql-academy.org