Learn SQL Online — Free Interactive Course

Free SQL Course · Course overview & lesson outline

Learn SQL Online — Free Interactive Course

Interactive SQL for Everyone: 5 chapters of visual explanations and 21 hands-on exercises, from foundations to reliable programs and applied projects.

Learn SQL online with 21 free interactive lessons. Practice SQL queries, joins, aggregations and database exercises in your browser. Read each explanation, edit the starter code, and try the exercise to check your understanding.

Beginner · 21 lessons · About 3.3 hours. Learn at your own pace.

What you’ll learn

Chapter 1: Querying & Filtering

Spreadsheet highlighters, kitchen colanders, detective checklists, and podium winners.

  1. 1. Highlighting Spreadsheet Columns
  2. 2. Straining Rows with WHERE
  3. 3. The Detective's Checklist
  4. 4. The Podium Winners

Chapter 2: Aggregations & Calculations

Grocery receipts, colored laundry hampers, weighing baskets, and null safety.

  1. 5. The Grocery Receipt Summary
  2. 6. Sorting Laundry by Color
  3. 7. Throwing Out Lightweight Baskets
  4. 8. Unique Stickers & Missing Tags

Chapter 3: Relational Superpowers

Friendship necklaces, attendance roll calls, secret average whispers, and CTE reports.

  1. 9. Snapping Friendship Necklaces
  2. 10. The School Attendance Roll Call
  3. 11. Whispering the Class Average
  4. 12. The Doorman's VIP Roster
  5. 13. Capstone: The Executive Report & CTEs

Chapter 4: Write and protect your data

Constraints, inserts, updates, deletion, and transaction boundaries in SQLite.

  1. A table with guardrails
  2. Change only the intended row
  3. Delete with an explicit condition
  4. All of a change, or none of it

Chapter 5: Analytical queries & a final project

Nulls, conditional summaries, rankings, and a multi-step report.

  1. Missing is different from zero
  2. Classify values with CASE
  3. Rank rows without collapsing them
  4. Project: an inventory valuation report

Is this course free?

All lessons and coding exercises are free to explore without an account. Progress is saved in this browser. Optional account and Supporter features have separate terms.

Can I learn offline?

Open the course and its language while connected. Wait for “Available offline” before disconnecting. Saved lessons and the editor can be used offline. Some lesson images may still need internet access. Cloud sync and AI require internet access.