Free SQL course · in English and Italian

Learn SQL by writing SQL.

41 lessons and 400 exercises on a real database, with the mistake explained every time you get it wrong. From your first SELECT to window functions, and on to an exam that earns a certificate.

Already have an account? Sign in

Exercise

Show the name and city of the customers in Italy.

SELECT name, city
FROM customers
WHERE country = 'Italy'

First try

no such column: Italy

Column Italy does not exist.

Italy is not a column. If it is a text value, put it in single quotes: 'Italy'.

Right.

namecity
Nicola TaylorCatania
Diego MarinoRoma
Stefano RizzoCatania
Amélie RicciRoma

Nothing to install: the database runs in your browser.

41lessons, nothing taken for granted
400exercises, new data on every attempt
12exam questions on a database you have never seen
0 €free, no ads

The method

Read the rule. Try it on real data. Then test it on your own.

  1. 01

    Read the rule

    Short lessons that take nothing for granted: every idea has its own paragraph and an example run on real data.

  2. 02

    Try it on real data

    Write, predict, fix and choose queries. The data changes at every attempt, so you learn the rule, not the answer.

  3. 03

    Test it on your own

    Twelve questions on a database you have never seen, in two hours. Pass, and you get a certificate anyone can verify.

Built for beginners

Every mistake becomes a lesson.

The mistake, explained

SQLite answers in technical English. The course tells you what is wrong and how to fix it.

SELECT name, city
FROM customers
WHERE country = Italy

SQLiteno such column: Italy

Rowtrail

Column Italy does not exist.

Italy is not a column. If it is a text value, put it in single quotes: 'Italy'.

SELECT nme, city
FROM customers

SQLiteno such column: nme

Rowtrail

Column nme does not exist.

Did you mean name?

SELECT name
FROM customer

SQLiteno such table: customer

Rowtrail

Table customer does not exist.

Did you mean customers?

Always new data

Every exercise is rebuilt on different data: no answers to learn by heart.

seed 16

namecity
Carmen GalloMadrid
Valentina RossiMILANO
Carmen GalloMilano

Review

The exercises you got wrong come back on the following days, until you get them right on the first try.

3to do again today

Your Sandbox

Try anything on the course data, on generated data or on your own CSV files, which stay in your browser.

Nothing to install

The database runs in the page. All you need is a browser.

Your progress follows you

Pick up where you left off, from any computer.

The path

From your first query to window functions.

An introduction for absolute beginners, then nine modules. The whole course works on the database of an online shop: customers, products, orders.

Introduction

What a database is and how the shop is built. To read; you can skip it.

  1. 1

    Foundations

    The first query, several columns, how SQL is written, the first calculations

    SELECTFROMAS

  2. 2

    Filtering

    Picking only the rows you need

    WHEREANDORINLIKE

  3. 3

    Functions, NULL, text and dates

    Transforming values and handling the empty ones

    NULLCOALESCEUPPERdate()

  4. 4

    Ordering and counting

    Putting rows in order and counting them

    ORDER BYLIMITDISTINCTCOUNTSUM

  5. 5

    Grouping

    Summarising data by groups

    GROUP BYHAVINGCASE

  6. 6

    Joining tables

    Putting together data from different tables

    JOINLEFT JOIN

  7. 7

    Queries inside queries

    Using the result of one query inside another

    SubqueryWITHUNION

  8. 8

    Windows

    Calculations over neighbouring rows, without grouping them

    OVERRANKLAGLEAD

  9. 9

    Changing data

    Inserting, changing and deleting rows; creating tables

    INSERTUPDATEDELETECREATE TABLE

Exam and certificate

At the end, a real exam.

  • 12 queries to write
  • 2 hours
  • 9 right out of 12
  • a database never seen before

Twelve questions, each solved by writing a query, on a database you have never seen. You have two hours; nine right answers out of twelve and you pass. If it doesn't go well, you can try again 24 hours after the start of your previous attempt. An exam you start counts as an attempt, even if you don't submit it. The exam opens once you have completed the course.

If you pass, you get a PDF certificate with a code. Anyone can verify it at rowtrail.com/verify, and you can add it to your LinkedIn profile.

Verify a certificate

Rowtrail SQL

Certificate of completion

Alex Morgan

has completed the Rowtrail SQL course and passed its final exam.

Date
18 November 2026
Code
K7QM 4XRP 2HDW
Valid certificateAlex Morgan · K7QM 4XRP 2HDW
Example: an invented name, a code never issued

Questions

What does it cost?

Nothing. Rowtrail SQL is free and has no ads. You only need an account, to save your progress.

Do I need to know anything already?

No. The course starts from what a table is, and explains every symbol the first time it appears.

What do I need?

A computer with an up-to-date browser. Nothing to install: the database runs in the page.

How long does it take?

That's up to you. Each lesson reads in one sitting, and the course picks up where you left off.

What do you do with my data?

We use it to run your course and to learn how to improve it. No third-party trackers and no cookies. We don't record the queries you write in the exercises: we keep only the ones you save and your final-exam answers. The details are in How we measure and in the Privacy notice.

Start with your first query.

Free, in your browser, in English or Italian.

Already have an account? Sign in