Learn SQL for Free: Courses, Practice Databases and Portfolio Projects

Learn SQL for free with interactive courses, practice databases and open datasets. This guide compares the best options and gives you a four-week plan.

By Galactic News Editorial · Published 2026-11-20T04:37:14+00:00 · Updated 2026-11-20T04:37:14+00:00

Learn SQL for free with courses, practice databases and portfolio projects

Learn SQL for Free: Courses, Practice Databases and Portfolio Projects

You can learn SQL for free, and you do not need to pay for a course to get a job-ready foundation. Free interactive courses, practice databases and open datasets cover everything from a first SELECT statement to joins, aggregation and portfolio projects. The key is to pick one structured path, write queries every day, and finish with a project that proves what you can do.

This guide compares the best free ways to learn SQL, gives you a four-week plan, and shows how to build a small portfolio with real data. Everything listed here is free to start, and any paid extras are clearly flagged.

How to Learn SQL for Free: Start With the Basics

SQL is the language used to query and manage data in relational databases. A beginner needs four building blocks. First, SELECT and WHERE to pull rows from a table. Second, ORDER BY and LIMIT to sort and trim results. Third, JOINs to combine tables. Fourth, GROUP BY and aggregate functions such as COUNT, SUM and AVG to summarise data.

After those, the next layer is data changes and structure. INSERT, UPDATE and DELETE change rows. CREATE TABLE and ALTER TABLE shape the database itself. Most free courses cover this full arc. You do not need to learn every database system at once. Standard SQL transfers well between SQLite, PostgreSQL and MySQL, so pick one and go deep.

Best Free SQL Courses Compared

The table below compares the free courses most often recommended for beginners. All of them cost nothing to start. Where a certificate is paid, the learning itself is still free.

CourseCostFormatDatabaseBest for
SQLBoltFreeInteractive lessons in the browserSQLite-styleAbsolute beginners
Khan Academy: Intro to SQLFreeVideos plus interactive challengesSQLite-styleVisual learners
Codecademy: Learn SQLFree lessons; certificate is paidInteractive lessons and projectsIn-browserGuided practice
Kaggle: Intro to SQLFreeNotebook tutorials and exercisesGoogle BigQueryData science beginners
freeCodeCamp: Relational DatabaseFreeProject-based certificationPostgreSQLProject-driven learners
CS50 SQL (Harvard)Free; verified certificate via edX is paidLectures, problem sets, final projectSQLite, PostgreSQL, MySQLDeepest free path

SQLBolt: the fastest first step

SQLBolt is a free series of interactive lessons and exercises that run entirely in the browser. There is no signup and nothing to install. The lessons move from SELECT queries through constraints, filtering and sorting, then joins, NULLs, expressions and aggregates, and finish with inserting, updating and deleting rows and creating, altering and dropping tables. Each lesson ends with a short exercise on a small movie database. Most learners finish the core series in a few sessions. It does not cover window functions or common table expressions, so plan to move on after it.

Khan Academy: Intro to SQL

Khan Academy offers a free Intro to SQL course called Querying and Managing Data. It uses short videos and interactive challenges in an embedded editor, so there is nothing to install. The course is organised into four sections: SQL basics, more advanced queries, relational queries with joins, and modifying databases. It suits learners who want a low-pressure start. There is no certificate, so pair it with a later project if you need proof of skill.

Codecademy: Learn SQL

Codecademy lists its Learn SQL course as free, with a certificate of completion available on its paid plans. The course page describes it as a beginner course taking about 5 hours, with 5 projects and no prerequisites. It covers managing large datasets and analysing real data with SQL. The free lessons give a solid guided foundation. The certificate sits behind the paid tier, so do not pay for it unless an employer asks for one.

Kaggle: Intro to SQL

Kaggle Learn offers a free Intro to SQL course that runs on Google BigQuery, a real cloud data warehouse. It takes about 3 hours and uses notebook tutorials with exercises on real datasets. This is a strong choice if you aim at data science or analytics roles, because you practise on the kind of data those jobs use. Kaggle also hosts public datasets you can query for portfolio work.

freeCodeCamp: Relational Database certification

freeCodeCamp offers a free, project-based Relational Database certification built on PostgreSQL. It is the most project-heavy free option. You build real database projects instead of only answering quiz questions. It takes longer than the other options, but you finish with work you can show. Everything is free, including the certificate.

CS50 SQL from Harvard

Harvard's CS50 SQL course is free to take through its OpenCourseWare page. A verified certificate is available only through edX and is paid. The course covers SQLite, then PostgreSQL and MySQL, with lectures, problem sets and a final project. It runs over about seven weeks of material. Choose it if you want the deepest free grounding and are comfortable with a university pace.

Free Practice Databases and Datasets

Courses teach syntax. Practice databases teach judgement. Once you know the basics, stop watching and start querying.

A good weekly habit is to solve five new problems on one of these sites, then write down what each query taught you. That note becomes your revision sheet.

A Four-Week Plan to Learn SQL for Free

  1. Week 1: foundations. Finish SQLBolt lessons 1 to 5 and the SELECT review. Write at least 20 queries. Learn SELECT, WHERE, ORDER BY, LIMIT and basic aggregates.
  2. Week 2: joins and grouping. Complete the Khan Academy sections on advanced queries and relational queries, or the matching SQLBolt lessons. Practise INNER JOIN, LEFT JOIN, GROUP BY and HAVING on SQLZoo.
  3. Week 3: real data. Take the Kaggle Intro to SQL course. Then pick one public dataset and answer five questions about it with your own queries. Save the queries in a document.
  4. Week 4: portfolio project. Build one end-to-end project. Load a dataset into SQLite or PostgreSQL, clean it with SQL, and write a short report of your findings with the queries included.

Thirty to forty-five minutes a day is enough. Consistency matters more than long weekend sessions. If a concept stalls you, go back one lesson instead of skipping ahead.

Portfolio Projects That Prove Your SQL Skills

Employers want to see queries, not certificates. A small portfolio with two or three projects beats a long list of finished courses. Good beginner projects include:

Publish each project with the dataset source, the schema, the queries and a short written summary of what you found. A public repository with clean, commented SQL is the strongest evidence a beginner can offer.

Common Mistakes When Learning SQL for Free

Many learners collect courses and never write enough queries. Watching a video is not the same as writing a query from scratch. If you cannot write a JOIN without looking it up, you have not learned it yet.

Another mistake is jumping between databases. Pick one system for your first month. The differences between SQLite, PostgreSQL and MySQL matter less than the shared core of the language.

A third mistake is skipping the hard parts. Aggregates, GROUP BY and HAVING feel awkward at first, and they are exactly what analytics jobs test. Spend extra time there instead of re-doing easy SELECT exercises.

Bottom Line

Start with SQLBolt for your first queries, add Khan Academy or Codecademy for structure, then move to Kaggle or freeCodeCamp for real data and projects. Four weeks of steady practice gives you a working foundation. Finish with one portfolio project built on a public dataset, and you will have something concrete to show for the free work you did.