7 lessons · 57 min Beginner

SQL — The data language

Read, filter, join and secure data in a relational database. The must-know language as soon as an app stores anything.

FR EN
Progress 0/7
1

Intro to databases

Tables, rows, columns: understanding a relational database

7 min
2

Selecting data

SELECT, FROM, WHERE: read data from a table

8 min
3

Filtering and sorting

AND/OR, LIKE, IN, ORDER BY: refine and order results

8 min
4

Aggregating and grouping

COUNT, SUM, GROUP BY: compute statistics

8 min
5

Joins

INNER and LEFT JOIN: link multiple tables

9 min
6

Modifying data

INSERT, UPDATE, DELETE: write and change data

8 min
7

Designing and securing

CREATE, keys, and the #1 flaw: SQL injection

9 min

What you will learn

Understand the relational model: tables, keys, relations

Write SELECT queries to read any data

Join multiple tables together

Compute statistics with aggregates

Modify data without breaking everything

Protect against SQL injection with prepared statements

Play to practise

Free games to practise SQL while having fun.

See all learning games →

Start lesson 1

Free · No signup · 7 minutes