Skip to content
freesqlcourses

SQL Quizzes and Online Tests (2026): 8 Free Options Compared

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 Last updated Course data last verified

Top picks

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

Compare all 8

Every course here is free to learn. They differ in practice, certificate and depth.

#CourseFreeCertificatePracticeLevelDatabase
1SQLMaxx Learn
SQLMaxx
Fully freeFreeAuto-graded in browserBeginner–AdvancedPostgreSQL
2PostgreSQL Exercises
PostgreSQL Exercises
Fully freeNoneAuto-graded in browserBeginner–AdvancedPostgreSQL
3SQLZoo tutorials & exercises
SQLZoo
Fully freeNoneAuto-graded in browserBeginner–IntermediateMySQL, PostgreSQL +1
4sql-practice.com
sql-practice.com
Fully freeNoneIn-browser exercisesBeginner–Advanced–
5HackerRank SQL practice
HackerRank
Fully freeFreeIn-browser exercisesBeginner–Advanced–
6W3Schools SQL Exercises & Quiz
W3Schools
Fully freeNoneExercises you check yourselfBeginner–
7LeetCode SQL 50 study plan
LeetCode
Fully freeNoneIn-browser exercisesBeginner–IntermediateMySQL, PostgreSQL +2
8SQL Online Test and Quiz (CodeChef skill test)
CodeChef
Fully freeNoneIn-browser exercisesBeginner–Intermediate–

Ordered by our scoring rubric. All checked November 22, 2026. "Not verified" means we couldn't confirm it yet.

How we picked

Full methodology

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.

The 8, reviewed

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

#1: SQLMaxx Learn

SQLMaxx · Course

95.4 / 100

Rubric score

SQLMaxx Learn lesson SELECT and Column Expressions: lecture text beside a SQL editor with Run query and Check answer
Our screenshot of sqlmaxx.com, taken November 22, 2026 without signing in.

Why it ranks #1

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.

What you get for free

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.

Our test

We opened lesson 1 without an account and wrote queries in the built-in PostgreSQL editor. A deliberately wrong answer was rejected against the expected result. The correct one returned Correct! with a short explanation of the concept. The Lecture tab is a written lesson with worked examples. The certificate page confirms it's free, has no exam and needs all 66 lessons.

Last verified November 22, 2026

What we liked

  • Mastery score per lesson; only unlocks lessons whose prerequisites you've mastered
  • Spaced repetition: brings earlier lessons back on a schedule with a fresh problem
  • Every answer auto-graded against the expected result in real PostgreSQL
  • Free certificate awarded for mastering all 66 lessons

Watch out for

  • PostgreSQL only; no INSERT/UPDATE/DELETE lessons
  • Scheduled review and the certificate need a free account

#2: PostgreSQL Exercises

PostgreSQL Exercises · Practice site

85.7 / 100

Rubric score

pgexercises exercise view: the expected results table beside the Your Answer box with a Run Query button
Our screenshot of pgexercises.com, taken November 22, 2026 without signing in.

Why it ranks #2

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.

What you get for free

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.

Our test

Each exercise shows the schema, the expected results and an answer box. We ran 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

#3: SQLZoo tutorials & exercises

SQLZoo · Interactive tutorial

78.8 / 100

Rubric score

SQLZoo exercise on the world table: a query box, a Submit SQL button and the result pane, with the tutorial list
Our screenshot of sqlzoo.net, taken November 22, 2026 without signing in.

What you get for free

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.

Our test

Each tutorial is followed by a multiple-choice quiz. We ran the first SELECT exercise: the unmodified sample was graded Wrong answer, with an option to show the expected answer. You can switch the engine between MySQL, PostgreSQL and Microsoft SQL. No account needed.

Last verified November 22, 2026

What we liked

  • Auto-graded exercises with instant feedback and model answers
  • Switch between MySQL, PostgreSQL and SQL Server
  • Quizzes after each tutorial

Watch out for

  • Dated wiki-style interface
  • No certificate or saved progress without login

#4: sql-practice.com

sql-practice.com · Practice site

76.5 / 100

Rubric score

sql-practice.com editor with SELECT * FROM patients and instructions; answers are validated automatically
Our screenshot of sql-practice.com, taken November 22, 2026 without signing in.

What you get for free

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.

Our test

Loads without an account, with two sample databases (hospital and northwind), a schema panel and questions graded Easy, Medium and Hard with automatic validation. The default query returned 4,530 patient rows.

Last verified November 22, 2026

What we liked

  • No account, instant practice on two realistic databases
  • Auto-validated questions at three difficulty levels
  • Includes window functions

Watch out for

  • Ad-supported
  • No certificate or progress tracking

#5: HackerRank SQL practice

HackerRank · Practice site

74.5 / 100

Rubric score

HackerRank SQL practice list (Revising the Select Query, Select All) with filters for status, skill and difficulty
Our screenshot of hackerrank.com, taken November 22, 2026 without signing in.

What you get for free

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.

Our test

The SQL domain lists challenges from basic to advanced, readable without an account. Solving them needs a free HackerRank account.

Last verified November 22, 2026

#6: W3Schools SQL Exercises & Quiz

W3Schools · Practice site

67.3 / 100

Rubric score

W3Schools SQL Quiz page: 25 questions, no time limit, one point per correct answer
Our screenshot of w3schools.com, taken November 22, 2026 without signing in.

What you get for free

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.

Our test

The quiz has 25 questions and no time limit, and you can start it without signing in. The exercises are multiple choice and fill-in-the-blank, with a Show Answer option.

Last verified November 22, 2026

#7: LeetCode SQL 50 study plan

LeetCode · Practice site

64.8 / 100

Rubric score

LeetCode SQL 50 study plan with its first Select problems marked Easy and a Start button
Our screenshot of leetcode.com, taken November 22, 2026 without signing in.

What you get for free

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).

Our test

The study plan lists 50 problems in 7 groups, from basic SELECT and joins to subqueries and advanced string functions, with no Premium locks. Problem pages, with a MySQL editor, schema and test case, are readable without signing in. Running and submitting needs a free account.

Last verified November 22, 2026

What we liked

  • 50 curated interview-style problems with a real SQL editor and test cases
  • Clear progression by topic
  • Most problems have a published solution

Watch out for

  • Free account needed to run code
  • Interview-puzzle style, not a teaching course
  • Only MySQL observed by default

#8: SQL Online Test and Quiz (CodeChef skill test)

CodeChef · Practice site

64.8 / 100

Rubric score

CodeChef SQL Online Test page listing the syllabus (joins, subqueries, set operations), 1 hour and 17 questions
Our screenshot of codechef.com, taken November 22, 2026 without signing in.

What you get for free

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.

Our test

The skill-test page shows 17 questions in 1 hour, but starting it asks you to log in.

Last verified November 22, 2026

SQL commands practice online

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

FAQ

Are these SQL quizzes free?

Yes. Everything on this page is fully free to use. Some need a free account to save progress or submit answers; each entry says so.

Which free SQL tests give a certificate?

HackerRank's SQL skills tests and TestDome's public practice test can earn a free certificate, and SQLMaxx Learn gives a free certificate of completion. Check the Certificate column in the comparison table for the rest.