SQL Basics
v1.0Statements, joins, basic database administration.
Written by Wahyu N, reviewed by Wahyu N, with AI help. Last updated November 24, 2026.
Release notes on GitHubThis track teaches SQL, the language for asking questions of a database. Five lessons cover what a database is, selecting and filtering rows, counting and joining tables, changing data safely and the basics of administration, and a final investigation of one suspicious night at a fictional company.
You need one free program, DB Browser for SQLite, and a small practice database you download from the lessons. Everything happens in that one file on your own computer, and you can download a fresh copy any time you break it.
Defenders use SQL, or languages very close to it, to search logs, alerts, and security data every day. It is also the language behind SQL injection, one of the best-known web attacks. When a question goes beyond the lessons, bring it to the community Discord.