SQLPath teaches SQL with 15 short exercises, from your first SELECT to joins and subqueries. Each one is a one-line task and a one-line hint.
You write the query and press Check. It runs on a small database using SQLite in your browser, and any query that returns the right rows counts as correct.