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 places to practise SQL window functions 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: Learn SQL - Free Interactive Course (Coddy).
Still learning the basics? Start with free online SQL courses.
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 | Learn SQL - Free Interactive Course (Coddy) Coddy | Fully free | Free | In-browser exercises | Beginner–Intermediate | SQLite |
| 3 | PostgreSQL Exercises PostgreSQL Exercises | Fully free | None | Auto-graded in browser | Beginner–Advanced | PostgreSQL |
| 4 | Free SQL Tutorial for Data Analysts DataLemur | Fully free | None | In-browser exercises | Beginner–Advanced | PostgreSQL |
| 5 | Databases for Developers: Next Level Oracle Dev Gym | Fully free | Free | In-browser exercises | Intermediate | Oracle |
| 6 | ThoughtSpot SQL Tutorial ThoughtSpot | Fully free | None | In-browser exercises | Beginner–Advanced | Standard SQL |
| 7 | sql-practice.com sql-practice.com | Fully free | None | In-browser exercises | Beginner–Advanced | – |
| 8 | HackerRank SQL practice HackerRank | Fully free | Free | In-browser exercises | Beginner–Advanced | – |
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 teaches window functions step by step, with every exercise graded. Its lessons cover OVER and PARTITION BY, ROW_NUMBER, RANK and DENSE_RANK, aggregate windows, LAG and LEAD, FIRST_VALUE to NTH_VALUE, window frames (ROWS, RANGE and GROUPS), NTILE and percentiles, then running totals and period-over-period analysis. Spaced review brings each topic back before you forget it. pgexercises also auto-grades but has no lessons or certificate. Coddy and Oracle Dev Gym give free certificates but need an account.
Where it's weaker: PostgreSQL only.
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
Coddy · Interactive tutorial

Coddy covers window functions as part of its 8-of-9 core-topic curriculum, the broadest here alongside pgexercises, and gives a free certificate for each completed section. pgexercises and DataLemur have no certificate, and Oracle Dev Gym's Next Level class is built around Oracle Database. sql-practice.com and ThoughtSpot have no certificate either.
Why it's not #1: you need a free account before the first lesson, and we haven't confirmed how its exercises are graded.
All 99 lessons, 98 challenges, quizzes and the completion certificate are free. An optional premium plan adds extra features.
Certificate: One free certificate per completed section.
Last verified November 22, 2026
PostgreSQL Exercises · Practice site

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
DataLemur · Interactive tutorial

All 33 tutorial lessons (Basic, Intermediate, Advanced) are free to read, and code can be run without signing in.
Certificate: No certificate.
SELECT * FROM products in lesson 102's PostgreSQL 14 editor without signing in and got results. An account is only needed to submit and save.Last verified November 22, 2026
Oracle Dev Gym · Course

All 10 parts (videos, Live SQL tutorials, quizzes) and the completion certificate are free with a free Oracle Account.
Last verified November 22, 2026
ThoughtSpot · Interactive tutorial

All tutorial lessons (Basic 15, Intermediate 20, SQL Analytics Training 8, Advanced 9) with an embedded SQL editor and practice problems are on open pages; no paywall seen.
Certificate: No certificate offered on the tutorial pages.
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
For mixed practice beyond window functions, try a SQL online quiz. To write your own window queries against sample data, use one of our free online SQL editors.
StrataScratch · Freemium
Free plan includes 75+ coding questions with solutions, hints and walkthroughs, concept questions and 50 AI credits per month.
Read our stratascratch reviewDataLemur · 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 our datalemur review