Learn SQL
Ask questions of data, one query at a time. 45 short lessons with runnable examples and practice. The first 4 are free.
45 topicsAbout 8 hoursBeginner friendly
Getting Started
- 01Databases and SQLTables, rows and columns, and your first SELECT query.Free
- 02Choosing columnsAsk for only the columns you need, in the order you want.Free
- 03Filtering rows with WHEREKeep only the rows you want, with WHERE and comparisons.Free
- 04Sorting and limitingSort rows with ORDER BY, and keep only the first few with LIMIT.Free
41 more topics, up to the advanced ones, are in the Languages Plan.
Practice SQL as you learn
With a free account you can run every example, write code in the editor and practice each topic. The Languages Plan opens every lesson in every language course.