🗃️

SQL Basics

v1.0

Statements, joins, basic database administration.

2h total5 lessons

Written by Wahyu N, reviewed by Wahyu N, with AI help. Last updated November 24, 2026.

Release notes on GitHub

This 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.

Start track
  1. What a Database IsOrientation
  2. Asking Questions: SELECT and WHERECore Concepts
  3. Counting and Combining: GROUP BY and JOINCore Concepts
  4. Changing Data, and Basic AdministrationCore Concepts
  5. Wrap-up: Investigate a Suspicious NightWrap-up