Tailr
← All posts

Best Sites to Practise SQL in 2026 (Free and Paid)

· updated

Collage of SQL practice sites including SQLBolt, SQLZoo, DataLemur, StrataScratch, LeetCode and HackerRank

SQL shows up in interviews for data analysts, data scientists, data engineers, back-end engineers, product managers and QA engineers. It’s also one of the easiest technical skills to practise, because so many good sites let you write real queries in your browser for free. The trick is using the right site for your level: beginner tutorials won’t prepare you for interview questions, and interview platforms are frustrating if you don’t know the basics yet.

The short answer: The best sites to practise SQL in 2026 are:

For beginners:

  1. SQLBolt: short interactive lessons with exercises.
  2. SQLZoo: classic free tutorials and quizzes.
  3. Mode SQL tutorial: beginner to advanced, with an analytics focus.
  4. W3Schools SQL: quick reference and try-it editor.

For interview practice: 5. DataLemur: real SQL interview questions from tech companies. 6. StrataScratch: a large bank of data interview questions. 7. LeetCode: database problems and the SQL 50 study plan. 8. HackerRank: SQL challenges, and the platform many companies use for tests.

For real-world practice: 9. Kaggle datasets and your own database: practise on real data.

Know your level

  • Beginner: you’re learning SELECT, WHERE, ORDER BY, GROUP BY and basic JOINs. Use sites 1 to 4.
  • Intermediate: you’re comfortable with joins and aggregates and learning subqueries, CTEs and window functions. Move to sites 5 to 8, starting with easy problems.
  • Interview-ready: you can solve medium problems with window functions in 10 to 15 minutes. Keep practising daily on 5 to 8, timed.

Beginner sites

1. SQLBolt

Website: sqlbolt.com

SQLBolt is a free set of short interactive lessons, each followed by exercises you solve in the browser. It covers the basics through joins, aggregates and simple table changes, and you can finish it in an afternoon or two.

Why use it:

  • Free, short and interactive.
  • Nothing to install.
  • Clear progression from zero.

Best for: your very first SQL lessons.

2. SQLZoo

Website: sqlzoo.net

SQLZoo is one of the oldest free SQL practice sites, with tutorials and quizzes built around real-looking datasets (world countries, Nobel prizes, football matches). The exercises get progressively harder, and it’s still widely recommended.

Why use it:

  • Free and thorough.
  • Lots of exercises per topic.
  • Builds up to harder joins and subqueries.

Best for: beginners who want plenty of practice.

3. Mode SQL tutorial

Website: mode.com/sql-tutorial

Mode’s free tutorial teaches SQL from basic to advanced with an analytics focus: aggregations, joins, window functions and performance, using realistic business data. It’s a good bridge from beginner to analyst-level SQL.

Why use it:

  • Covers basic to advanced in one place.
  • Analytics-style examples.
  • Clear explanations of window functions.

Best for: aspiring data analysts.

4. W3Schools SQL

Website: w3schools.com/sql

W3Schools has a simple reference for every SQL keyword with a try-it editor and short quizzes. It’s less of a course and more a quick place to check syntax or try an idea.

Why use it:

  • Quick syntax reference.
  • Try queries instantly.
  • Covers every keyword.

Best for: looking things up while you practise.

Interview practice sites

5. DataLemur

Website: datalemur.com

DataLemur, created by Nick Singh, co-author of Ace the Data Science Interview, offers SQL interview questions based on real questions from tech companies, sorted by difficulty and company. Many questions are free, with solutions and explanations, and there’s a free SQL tutorial for those still learning.

Why use it:

  • Questions modelled on real interviews.
  • Filter by company and difficulty.
  • Clear solutions.

Best for: data analyst and data science interview prep.

6. StrataScratch

Website: stratascratch.com

StrataScratch has a large bank of real interview questions from tech companies, covering SQL and Python for data roles. You can filter by company, difficulty and topic, and see other people’s solutions. Part of the library is free, with a paid plan for full access.

Why use it:

  • Very large set of real interview questions.
  • SQL and Python in one place.
  • Community solutions to learn from.

Best for: serious data interview preparation.

7. LeetCode

Website: leetcode.com

LeetCode is best known for coding problems, but it also has a database section and a “SQL 50” study plan covering the most common interview patterns. Problems run in MySQL, PostgreSQL and other dialects. Some problems require a paid plan.

Why use it:

  • A focused study plan of common patterns.
  • Choice of SQL dialects.
  • Discussion of different solutions.

Best for: engineers and analysts already using LeetCode.

8. HackerRank

Website: hackerrank.com

HackerRank has a free SQL track from basic select statements to advanced joins and aggregations, plus skill certificates. Many companies use HackerRank for their real SQL assessments, so practising there makes the format familiar.

Why use it:

  • Same platform as many real assessments.
  • Free SQL track with certificates.
  • Gradual difficulty.

Best for: preparing for online SQL tests.

Real-world practice

9. Kaggle datasets and your own database

Website: kaggle.com/datasets

Interview sites give you clean problems; real jobs give you messy data. Install PostgreSQL or SQLite for free, download a dataset from Kaggle (or a public dataset in BigQuery’s free tier), and answer your own questions: top products by month, customer retention, average order value. Write it up and it becomes a portfolio project. See best tools for data analysts for the tools around SQL.

Why use it:

  • Practise on messy, real data.
  • Build portfolio projects.
  • Learn setup and performance, not just syntax.

Best for: going from practice to job-ready.

Comparison at a glance

Site Level Free option Best for
SQLBolt Beginner Free First lessons
SQLZoo Beginner to intermediate Free Lots of exercises
Mode SQL tutorial Beginner to advanced Free Analytics SQL
W3Schools Beginner Free Syntax reference
DataLemur Intermediate to advanced Many free questions Data interviews
StrataScratch Intermediate to advanced Part free Large question bank
LeetCode Intermediate to advanced Part free SQL 50 study plan
HackerRank Beginner to advanced Free Online assessments
Kaggle and your own DB All Free Real-world projects

A six-week SQL plan

  • Week 1: SQLBolt, then SQLZoo’s basic sections.
  • Week 2: SQLZoo joins and Mode’s intermediate lessons.
  • Week 3: Mode’s window functions; start easy DataLemur or LeetCode problems.
  • Weeks 4 and 5: Two or three medium problems a day on DataLemur, StrataScratch or LeetCode, timed.
  • Week 6: One portfolio project on a real dataset, plus a HackerRank timed test.

Then review the questions in our list of SQL interview questions.

Show your SQL on your resume

Name the dialects and tools you’ve used and what you did with them: “Wrote SQL in BigQuery to build a weekly retention dashboard used by 40 people”, not just “SQL”. Data listings vary, with some wanting Snowflake and dbt and others SQL Server and Power BI, so lead with what each one names. Tailr tailors your resume to the job listing you’re viewing, using only what’s true in your experience, and writes a matching cover letter. Try Tailr on your next data application.

Conclusion

Start with SQLBolt, SQLZoo or Mode to learn the basics, use W3Schools as a reference, move to DataLemur, StrataScratch, LeetCode and HackerRank for interview practice, and finish with a project on real data. Practise a little every day, time yourself on medium problems, and you’ll be ready for SQL interviews in about six weeks.

Frequently asked questions

01What is the best website to practise SQL?

For complete beginners, SQLBolt and SQLZoo are the best free starting points. For job interview practice, DataLemur, StrataScratch and LeetCode's database problems have real interview-style questions. HackerRank is useful because many companies use it for their actual SQL assessments.

02Can I practise SQL for free?

Yes. SQLBolt, SQLZoo, W3Schools, Mode's SQL tutorial and the free problems on DataLemur, StrataScratch, LeetCode and HackerRank are more than enough to go from beginner to interview-ready. You can also install PostgreSQL or SQLite for free and practise on real datasets.

03How long does it take to learn SQL for a job?

Most people can learn the basics (SELECT, WHERE, GROUP BY, JOINs) in one to two weeks of regular practice. Getting comfortable with interview-level questions involving window functions, CTEs and tricky joins usually takes another three to six weeks of daily problems.

04What SQL topics come up most in interviews?

JOINs (especially LEFT JOIN), GROUP BY with HAVING, aggregate functions, subqueries and CTEs, window functions like ROW_NUMBER, RANK and LAG, date handling, CASE WHEN, and handling NULLs. Common tasks are finding top N per group, running totals, retention and month-over-month changes.

05Which SQL dialect should I practise?

PostgreSQL or MySQL are good defaults, and the core SQL is the same in every dialect. Differences show up in date functions, string functions and a few features. If a job listing names a specific database, such as Snowflake, BigQuery or SQL Server, spend some time on its syntax before the interview.

06Is SQL enough to get a data analyst job?

SQL is the most important single skill for data analyst roles, but most listings also expect Excel or Google Sheets, a BI tool like Tableau, Power BI or Looker, and the ability to explain findings clearly. Python is increasingly asked for too. Strong SQL plus one BI tool and a couple of portfolio projects is a solid base.