Compare

W3Schools SQL Alternatives: 7 Options, and Who Each One Fits

By Owen Middleton · Updated November 2026

Among the W3Schools SQL alternatives, we would start on SQLBolt. SQLBolt ties on our tests with Khan Academy Intro to SQL, and we choose SQLBolt for its 53 tasks with a solution on each. On both sites, the practice is free, you need no account to start, and you get a lesson first. You also get what W3Schools does not give: a check on a query that you write.

Take Khan Academy if you want to watch a short talk-through before you write: you pass each challenge step only when you get the expected result. On the three challenges where we looked, we found no full solution.

If you want window functions too, go to PostgreSQL Exercises: 71 free exercises with a check on your rows and no account, 6 of them with a window function and 9 in which you change data.

We built SQLMaxx Learn, the seventh option, so we put it last.

Our take. We would keep the free W3Schools chapters for reading, and we would practice on a site that checks each query. We would do the 53 SQLBolt tasks first; take Khan Academy, with 13 challenges and 4 projects, if you want talk-throughs. We found no window function or CTE lessons on either, so go on to PostgreSQL Exercises, with one small country-club database in all 71 exercises. We would do data changes there too, because in our test, SQLBolt gave the check mark to a DELETE of too many rows. We would not pay yet: practice is free on five of six sites; LeetCode Premium is $159 a year, for 218 problems and SQL lessons.

What does W3Schools do well for SQL?

  • You read the tutorial free with no account, with pages on joins, GROUP BY, HAVING, EXISTS and CASE. You pay W3Schools $95 if you take its SQL certificate exam. how we know
  • You get 60 SQL exercise sets free, and on a fill-in-the-blank question, W3Schools fills the blanks when you select Show Answer. how we know
  • In the Try-SQL Editor, you can run whole queries. In our test, we got rows from a query with WITH and from a query with ROW_NUMBER(). how we know

So "you cannot write SQL on W3Schools" is false. What you do not get is a check on what you write. (The W3Schools SQL tutorial)

Which W3Schools SQL alternative fits your reason to leave?

Which SQL site fits your reason to leave W3Schools
Your reason to leave W3Schools What you need Sites
You get no check on your own query: exercises are choices and blanks, and you get no task in the editor. Skip this if you only read and quiz yourself. how we know A whole query, a check, no payment Khan Academy (13 challenges), SQLBolt (37 of 41 SELECT tasks), PostgreSQL Exercises (71), sql-practice.com (69), LeetCode (105 free; account to start), Codewars (395), SQLMaxx Learn (ours, 615, in the app).
We found no window functions in the SQL menu, and no CTE chapter. Skip this reason if joins, GROUP BY and CASE are as far as you need. how we know Free window-function problems with a check PostgreSQL Exercises (6 of 71), sql-practice.com (1 of 69), LeetCode (2 free problems; account to start), Codewars (1 approved kata), SQLMaxx Learn (ours, from lesson 38, in the app).
You read about INSERT, UPDATE and DELETE, but you do not run them for a check. Skip this reason if you only write SELECT queries. how we know Tasks that change data, a check, no payment Khan Academy (2 challenges, one run), SQLBolt (7 tasks; it reads part of the table), PostgreSQL Exercises (9), sql-practice.com (1), LeetCode (2 free problems, one run; account to start).

In brackets, we give the count that we found. A site can have more. Our own course is not in the last row, because you change no data in any of its problems.

The W3Schools SQL alternatives, one by one

Khan Academy Intro to SQL

For your first checked queries, with short talk-throughs before the challenges.

  • Price: Free; Khan Academy asks for donations
  • Size: Five lessons, 13 challenges and 4 projects
  • Check: You pass a step only with the expected result
  • Data changes: In our test, Khan Academy did not pass an UPDATE with one wrong price
  • Limit: You find no lessons on window functions or CTEs, and we found no full solution on three challenges.

how we know

Go to Khan Academy Intro to SQL

SQLBolt

For a lesson, then short tasks, with a solution when you are stuck.

  • Price: Free; SQLBolt asks for an optional $4 donation
  • Size: 53 tasks in 18 lessons
  • Check: Your rows on 37 of 41 SELECT tasks; column names only on 4
  • Data changes: 7 tasks with INSERT, UPDATE or DELETE, in lessons 13 to 15
  • Limit: On data changes, SQLBolt reads only part of the table. In our test, it gave the check mark to a DELETE of too many rows. You cannot run window functions there.

how we know

Go to SQLBolt

PostgreSQL Exercises (pgexercises)

For checked queries, window functions and data changes, free, on one PostgreSQL database.

  • Price: Free, with no account and no installation
  • Size: 71 exercises in seven categories
  • Data changes: 9 exercises: 3 INSERT, 3 UPDATE and 3 DELETE
  • Answers: A query and a discussion on all 71
  • Limit: Every exercise is on the same small country-club database.

how we know

Go to PostgreSQL Exercises (pgexercises)

sql-practice.com

For 69 questions on hospital and Northwind data, each with a check on your output.

  • Price: Free, with ads; we found no paid plan
  • Engine: SQLite 3.39.3
  • Check: In our test, sql-practice.com passed right rows in another order and failed a result one row short
  • Solutions: View Solution on all 69, with no account
  • Limit: You find a window function in 1 of the 69 solutions, and you change data on 1 question.

how we know

Go to sql-practice.com

LeetCode

For window functions and data changes in four SQL engines, after a free sign-up.

  • Price: 105 of 323 Database problems free; Premium is $35 a month or $159 a year
  • Engines: MySQL, MS SQL Server, PostgreSQL or Oracle, on each free problem
  • Check: With a free account, LeetCode accepted right rows in another order and rejected one row too few
  • Data changes: Free: Delete Duplicate Emails (196) and Swap Sex of Employees (627); on 196, LeetCode rejected our DELETE of all rows
  • Limit: You sign in to run a query, and past one preview chapter, you need Premium for its SQL lessons.

how we know

Go to LeetCode

Codewars SQL kata

For a large bank of SQL kata in PostgreSQL, with full attempts and no account.

  • Price: Free; we found no kata for which you need Codewars Red, the paid plan
  • Size: 395 SQL kata, 10 of them in beta
  • Check: In our test, Codewars failed right rows in another order, with no order in the instructions
  • Window functions: For example, "Using Window Functions To Get Top N per Group"
  • Limit: Some kata are code puzzles, and we found no kata when we searched for UPDATE, DELETE and INSERT.

how we know

Go to Codewars SQL kata

SQLZoo just misses this list, in seventh place. You still get free questions with a check and no account, but you change no rows in its 13 tutorials. how we know

We give the reasons to leave SQLZoo on our page of sites like SQLZoo.

W3Schools SQL alternatives: common questions

Is W3Schools enough to practice SQL?

For reading and for trying queries, yes; for a check on what you write, no. In the W3Schools Try-SQL Editor, you can run whole queries, but W3Schools gives no task and does not compare your result with an expected result. In its 60 SQL exercise sets, we counted 205 multiple-choice, 52 fill-in-the-blank and 42 drag-and-drop questions, and you do not write a full query. W3Schools Practice has problems in 12 languages, and SQL is not one of them. For a check on each query, we would start on SQLBolt, or on Khan Academy Intro to SQL if you want talk-throughs.

Why do some people avoid W3Schools for SQL?

For SQL practice, we found three reasons. You get no check on a query that you write. We found no window functions in the SQL menu. You do not run INSERT, UPDATE or DELETE for a check. On the Scrimba blog, Per Harald Borgen calls W3Schools "wide but shallow by design". But Scrimba sells coding courses, and he writes about learning to code in general, not about SQL. In fairness, you can run whole queries in the W3Schools editor, with window functions too.

Where can I practice SQL after W3Schools?

We would start on SQLBolt, for its 53 tasks with a solution on each, or on Khan Academy Intro to SQL for talk-throughs. Both are free, you need no account to start, and you get a lesson before the practice. For window functions and data changes, go on to PostgreSQL Exercises. You can also write whole queries and get a check with no account on sql-practice.com (69 questions) and Codewars SQL kata (395). You can do the same on LeetCode (105 free problems) with a free account. In our own course, you get the same terms in the app, with 615 problems.

Which database does the W3Schools SQL editor use?

We cannot name one with certainty. W3Schools says WebSQL in some browsers and "a read-only Access Database" in others. But when we ran queries, Microsoft SQL Server gave the error messages, and SQL Server did not accept LIMIT 3. If you want to know your engine, you write PostgreSQL 16.13 on PostgreSQL Exercises and SQLite on Khan Academy and sql-practice.com. You choose from four engines on LeetCode, after a free sign-up. Our own course is PostgreSQL only.

How we checked W3Schools and its SQL alternatives

We ran queries on W3Schools and the six listed sites, with no account except a free one on LeetCode, and we paid nothing.

We started from 15 sites and from our own course, and we ask the same four tests of each one. The sites are Khan Academy Intro to SQL, SQLBolt, PostgreSQL Exercises (pgexercises), sql-practice.com, LeetCode, Codewars SQL kata, SQLZoo and StrataScratch. The others are Codecademy Learn SQL, DataLemur, Exercism SQLite track, HackerRank SQL challenges, freeCodeCamp Relational Databases certification, GeeksforGeeks SQL Exercises and ThoughtSpot SQL tutorial.

Test 1: you type whole SQL queries in an editor on the site, not blanks or choices as in the W3Schools exercises.

Test 2: you get a check, and we saw it in our own run, or read it in the words of the company. A failed attempt to run it is not enough.

Test 3: part of the practice is free with no time limit, so we do not count a free trial.

Test 4: the site meets the rule of at least one row of the table above.

We set no score and no rank here, and we put the sites in order in three steps. First, the sites on the terms of W3Schools: Khan Academy Intro to SQL and SQLBolt. These terms are all practice free, no account to start and a lesson before the practice. Then every other site. Last, SQLMaxx Learn, which also has those terms in the app.

Inside a step, we put the sites in more rows first, then the sites where the check in each of their rows needs no account. Then we use alphabetical order, with letters and digits only. So Khan Academy comes first in the list by its letters, and we would still start on SQLBolt. Beside our own course, we name at most 6 sites, from the top of this order.

To see how we label what we found on W3Schools, read how we label and date our facts.

SQL sites that we left out, against W3Schools

  • SQLZoo (7th), StrataScratch (8th), Codecademy Learn SQL (9th), DataLemur (10th), Exercism SQLite track (11th), HackerRank SQL challenges (12th). Each one passes the four tests. We name 6 sites, in the order above, and these come next. On SQLZoo, you read short notes, not a lesson, and you change no rows in its 13 numbered tutorials. On StrataScratch, you pay for 679 of its 750 Analytical questions. On DataLemur, you sign in for the check. On Codecademy, Exercism and HackerRank, you sign up first.
  • freeCodeCamp Relational Databases certification. Test 1: you write the SQL of its workshops outside the site.
  • GeeksforGeeks SQL Exercises. Test 1: we found no editor and no check.
  • ThoughtSpot SQL tutorial. Test 2: you compare your answer with the given answer yourself.

What we found on W3Schools

What W3Schools does well for SQL, from our run in its editor and from its own pages.

W3Schools

SQL sites that check whole queries, against W3Schools

You type the full statement. A starter query in the box, or tables that the site makes for you, still count, and a blank in a given query does not. By a check, we mean a verdict on the result of your query, against an expected result.

W3Schools

Khan Academy

SQLBolt

PostgreSQL Exercises

  • PostgreSQL Exercises free use, checked October 15, 2026: source · our notes
  • PostgreSQL Exercises content, checked October 20, 2026: source · our notes
  • PostgreSQL Exercises query check, checked October 15, 2026: source · our notes
  • PostgreSQL Exercises query check, note 2, checked November 3, 2026: source · our notes

sql-practice.com

LeetCode

Codewars

Window function practice on W3Schools and its SQL alternatives

One free practice problem is enough for this row. We count a problem when its task, or the main solution that the site publishes, uses a window function.

W3Schools

PostgreSQL Exercises

  • PostgreSQL Exercises SQL topics, checked November 3, 2026: source · our notes
  • PostgreSQL Exercises query check, checked November 3, 2026: source · our notes

sql-practice.com

LeetCode

Codewars

SQL practice that changes data, against W3Schools

We count a task that asks you to insert, update or delete rows as the skill. We do not count an UPDATE or INSERT that only writes your answer, or fills a table that you make yourself, as on Exercism. StrataScratch is not in this row: none of its 71 free Analytical questions, of 750 (679 are PRO), and no item in the free path. DataLemur: none of the 54 free questions in its question list. SQLZoo: none in the 13 tutorials. Codewars: we searched by word and found no kata, and we did not read all 395.

W3Schools

Khan Academy

SQLBolt

PostgreSQL Exercises

  • PostgreSQL Exercises content, checked October 23, 2026: source · our notes

sql-practice.com

LeetCode

StrataScratch

DataLemur

SQLZoo

Codewars

Exercism

Khan Academy Intro to SQL

The notes behind the Khan Academy lines, for a reader who leaves W3Schools.

Khan Academy

SQLBolt

The notes behind the SQLBolt lines, for a reader who leaves W3Schools.

SQLBolt

PostgreSQL Exercises (pgexercises)

The notes behind the PostgreSQL Exercises lines, for a reader who leaves W3Schools.

PostgreSQL Exercises

  • PostgreSQL Exercises strength, checked October 15, 2026: source · our notes
  • PostgreSQL Exercises free use, checked October 15, 2026: source · our notes
  • PostgreSQL Exercises query check, checked November 3, 2026: source · our notes
  • PostgreSQL Exercises SQL topics, checked November 3, 2026: source · our notes
  • PostgreSQL Exercises content, checked October 23, 2026: source · our notes
  • PostgreSQL Exercises account, checked October 15, 2026: source · our notes
  • PostgreSQL Exercises content, note 2, checked October 20, 2026: source · our notes
  • PostgreSQL Exercises solutions, checked October 22, 2026: source · our notes
  • PostgreSQL Exercises limit, checked October 24, 2026: source · our notes
  • PostgreSQL Exercises SQL engines, checked October 15, 2026: source · our notes

sql-practice.com

The notes behind the sql-practice.com lines, for a reader who leaves W3Schools.

sql-practice.com

LeetCode

The notes behind the LeetCode lines, for a reader who leaves W3Schools.

LeetCode

Codewars SQL kata

The notes behind the Codewars lines, for a reader who leaves W3Schools.

Codewars

SQLZoo, in seventh place

What we ran on SQLZoo, and where we looked for a change of rows.

SQLZoo

When you want lessons in order, SQLMaxx Learn is the SQLMaxx course. For example, you see how ORDER BY and Result Sorting works in lesson 7 and how DISTINCT works in lesson 10. You need no account in the app.