Best overall
SQLMaxx Learn
SQLMaxx · Beginner–Advanced
Also best with a free certificate, interactive, for beginners and for data analysts.
- Fully free
- Free certificate
- Auto-graded in browser

These are the best free SQL quizzes, online tests and practice sites in 2026, ranked by our published scoring rubric. All are free to use.
Best overall, best with a free certificate, best interactive, best for beginners and best for data analysts: SQLMaxx Learn. Runner-up: PostgreSQL Exercises.
New to SQL? Start with free online SQL courses, then come back to test yourself.
By Brian WhiteLast updated Course data last verified
Best overall
SQLMaxx · Beginner–Advanced
Also best with a free certificate, interactive, for beginners and for data analysts.

Every course here is free to learn. They differ in practice, certificate and depth.
| # | Course | Free | Certificate | Practice | Level | Database |
|---|---|---|---|---|---|---|
| 1 | SQLMaxx Learn SQLMaxx | Fully free | Free | Auto-graded in browser | Beginner–Advanced | PostgreSQL |
| 2 | PostgreSQL Exercises PostgreSQL Exercises | Fully free | None | Auto-graded in browser | Beginner–Advanced | PostgreSQL |
| 3 | SQLZoo tutorials & exercises SQLZoo | Fully free | None | Auto-graded in browser | Beginner–Intermediate | MySQL, PostgreSQL +1 |
| 4 | sql-practice.com sql-practice.com | Fully free | None | In-browser exercises | Beginner–Advanced | – |
| 5 | HackerRank SQL practice HackerRank | Fully free | Free | In-browser exercises | Beginner–Advanced | – |
| 6 | W3Schools SQL Exercises & Quiz W3Schools | Fully free | None | Exercises you check yourself | Beginner | – |
| 7 | LeetCode SQL 50 study plan LeetCode | Fully free | None | In-browser exercises | Beginner–Intermediate | MySQL, PostgreSQL +2 |
| 8 | SQL Online Test and Quiz (CodeChef skill test) CodeChef | Fully free | None | In-browser exercises | Beginner–Intermediate | – |
Ordered by our scoring rubric. All checked November 22, 2026. "Not verified" means we couldn't confirm it yet.
Free means free
Only fully free or free-to-audit courses. No free trials, no freemium.
One rubric for all
What's free, practice, topic coverage, certificate and ease of starting. Unverified claims score zero.
Tested, not copied
All 8 were tested hands-on, without signing in.
In ranked order, with what's free, what we found when we tested it, and who it suits.
Best overall · also best with a free certificate, interactive, for beginners and for data analysts
SQLMaxx · Course

SQLMaxx Learn is the most complete free SQL practice here: 615 problems, each auto-graded against the expected result, plus scheduled review that brings old topics back as fresh problems. It's the closest thing on this page to a quiz that adapts to you. pgexercises and SQLZoo also auto-grade, but neither has a certificate or a review schedule. HackerRank, LeetCode and CodeChef need an account before you can submit an answer, and W3Schools' quiz is multiple choice.
Where it's weaker: PostgreSQL only, and no INSERT, UPDATE or DELETE practice.
All 66 lessons, all 615 practice problems and the certificate are free; an account is only needed for review and the certificate.
Certificate: SQLMaxx Certificate of Completion; no exam, no fee; requires mastering all 66 lessons and solving at least one problem in each; not accredited.
Last verified November 22, 2026
PostgreSQL Exercises · Practice site

pgexercises is the best pure practice site here. Every exercise shows the expected results and checks your answer against them in a live PostgreSQL database, with an answer and discussion for each one, and no account needed. It covers 8 of the 9 core topics we check, the most of any site on this page. SQLZoo also auto-grades but covers fewer topics (5). sql-practice.com runs in the browser but we haven't confirmed how it grades, and HackerRank, LeetCode and CodeChef need an account to submit.
Why it's not #1: it has no lessons, no certificate and no review schedule, and it's PostgreSQL only.
All exercise categories (Basic, Joins and Subqueries, Modifying data, Aggregates, Date, String, Recursive) with explanations; content licensed CC BY-SA 3.0.
Certificate: No certificate found on the site.
select * from cd.facilities against a live PostgreSQL database and got a green tick, so answers are checked against the expected output. Answers and discussion are available for every exercise. No account needed.Last verified November 22, 2026
SQLZoo · Interactive tutorial

All tutorials (basics through window functions and self join), in-browser exercises and multiple-choice quizzes are open; login optional; no pricing appears on the site.
Certificate: No certificate.
Last verified November 22, 2026
sql-practice.com · Practice site

Everything we tried worked free without an account: both sample databases (hospital and northwind), the editor and the graded Easy, Medium and Hard questions.
Certificate: Practice site, no certificate.
Last verified November 22, 2026
HackerRank · Practice site

SQL challenges (Basic Select through Advanced Join) and SQL (Basic/Intermediate/Advanced) skills certification tests are free with a free developer account.
Certificate: SQL (Basic), SQL (Intermediate), SQL (Advanced) certification tests, 60-90 minutes each; account required.
Last verified November 22, 2026
W3Schools · Practice site

25-question SQL quiz and about 60 exercise sets (3-9 multiple-choice/fill-in-the-blank questions each) are openly available; sign-in only tracks progress.
Certificate: The quiz and exercises award no certificate; W3Schools sells a separate SQL certificate.
Last verified November 22, 2026
LeetCode · Practice site

All 50 SQL 50 problems are free (no Premium locks); a free account is needed to run and submit. LeetCode Premium is not required for this plan.
Certificate: A profile badge on completion (not a certificate).
Last verified November 22, 2026
CodeChef · Practice site

A 17-question, 60-minute SQL assessment with an instant performance report and shareable score card. No price or Pro gate is shown publicly.
Certificate: Gives a 'Shareable Score Card', not a certificate.
Last verified November 22, 2026
Want to practise individual commands (SELECT, JOIN, GROUP BY, INSERT) rather than take a timed test? The interactive entries above check your answers in the browser. To run any command you like against your own tables, use one of the free online SQL Server and other database editors we compare.
When you’re comfortable with joins and aggregation, move on to SQL window function practice.
Two interview-prep favourites keep most of their question banks behind a subscription:
StrataScratch · Freemium
Free plan includes 75+ coding questions with solutions, hints and walkthroughs, concept questions and 50 AI credits per month.
Read is stratascratch free?DataLemur · Freemium / Fully free
The SQL tutorial (including window-function lessons) and a subset of interview questions are free; DataLemur does not state how many questions are free.
Read datalemur review