Skip to content
freesqlcourses

SQL Window Function Practice (2026): 8 Free Sites Compared

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 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
2Learn SQL - Free Interactive Course (Coddy)
Coddy
Fully freeFreeIn-browser exercisesBeginner–IntermediateSQLite
3PostgreSQL Exercises
PostgreSQL Exercises
Fully freeNoneAuto-graded in browserBeginner–AdvancedPostgreSQL
4Free SQL Tutorial for Data Analysts
DataLemur
Fully freeNoneIn-browser exercisesBeginner–AdvancedPostgreSQL
5Databases for Developers: Next Level
Oracle Dev Gym
Fully freeFreeIn-browser exercisesIntermediateOracle
6ThoughtSpot SQL Tutorial
ThoughtSpot
Fully freeNoneIn-browser exercisesBeginner–AdvancedStandard SQL
7sql-practice.com
sql-practice.com
Fully freeNoneIn-browser exercisesBeginner–Advanced–
8HackerRank SQL practice
HackerRank
Fully freeFreeIn-browser exercisesBeginner–Advanced–

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

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: Learn SQL - Free Interactive Course (Coddy)

Coddy · Interactive tutorial

88.3 / 100

Rubric score

Coddy's Learn SQL page: free interactive course with a Start Learning button, 99 lessons, 98 challenges and learning paths
Our screenshot of coddy.tech, taken November 22, 2026 without signing in.

Why it ranks #2

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.

What you get for free

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.

Our test

Coddy's certification page confirms one free certificate per completed section, earned in graded lessons and challenges. Starting the course takes you through a short onboarding and a free account before lesson 1.

Last verified November 22, 2026

#3: 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.

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

#4: Free SQL Tutorial for Data Analysts

DataLemur · Interactive tutorial

78.8 / 100

Rubric score

DataLemur SQL Tutorial for Data Analysts with its first Basic SQL lessons: intro, SELECT and WHERE
Our screenshot of datalemur.com, taken November 22, 2026 without signing in.

What you get for free

All 33 tutorial lessons (Basic, Intermediate, Advanced) are free to read, and code can be run without signing in.

Certificate: No certificate.

Our test

The tutorial runs from Basic (lessons 101 to 109) through Intermediate (201 to 211) to Advanced (301 onward: CTEs versus subqueries, ranking, LEAD and LAG, string functions). We ran 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

What we liked

  • Free tutorial from basics to window functions, aimed at analysts and interviews
  • Practice exercises run real PostgreSQL in the browser without an account

Watch out for

  • Wider question bank is partly Premium
  • Casual tone may not suit everyone

#5: Databases for Developers: Next Level

Oracle Dev Gym · Course

76.8 / 100

Rubric score

Oracle Dev Gym Databases for Developers: Next Level class page with modules on NULL, subqueries and top-N
Our screenshot of devgym.oracle.com, taken November 22, 2026 without signing in.

What you get for free

All 10 parts (videos, Live SQL tutorials, quizzes) and the completion certificate are free with a free Oracle Account.

Our test

The class page lists 10 modules: NULL, subqueries, ORDER BY and top-N, analytic (window) functions, pivot and unpivot, set operators, hierarchical queries, MERGE, read consistency and a review. Taking the class needs a free Oracle account.

Last verified November 22, 2026

What we liked

  • Free intermediate follow-on with window functions, pivot, hierarchical queries
  • Same videos + Live SQL + quizzes format

Watch out for

  • Needs a free Oracle account
  • Oracle dialect

#6: ThoughtSpot SQL Tutorial

ThoughtSpot · Interactive tutorial

76.5 / 100

Rubric score

ThoughtSpot SQL Editor Tutorial with a sample GROUP BY query on stock prices and a Run Query button
Our screenshot of thoughtspot.com, taken November 22, 2026 without signing in.

What you get for free

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.

Our test

52 lessons in 4 tracks (basic, intermediate, analytics, advanced). Lessons include practice problems with an embedded SQL editor and a See the answer option. We ran the GROUP BY example without signing in. This is the former Mode SQL tutorial. No certificate.

Last verified November 22, 2026

What we liked

  • 52 lessons from basics to advanced analytics, written for data analysis
  • Embedded editor runs queries on real sample data with no account
  • Practice problems with answers on each lesson

Watch out for

  • Vendor marketing (demo/trial prompts) around the content
  • Sample stock data has some inconsistent values
  • No certificate

#7: 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

#8: 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

More practice

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 review
  • 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 our datalemur review

FAQ

Where can I practise SQL window functions for free?

Every site on this page is free. The comparison table shows which run exercises in your browser and which need an account.

What should I know before practising window functions?

Be comfortable with SELECT, GROUP BY and joins first. Window functions (ROW_NUMBER, RANK, running totals with OVER) build on aggregation.