Home Cases About

Fun SQL Exercises for Beginners

Fun SQL practice and fun SQL projects for beginners. Learn SQL with a SQL mystery—story-driven datasets, simple queries first, then JOINs and grouping as the case unfolds.

Fun SQL exercises: a simple learning path

  1. Start with SELECT + WHERE to list suspects and filter clues.
  2. Use ORDER BY to build timelines.
  3. Learn JOIN to connect people, events, and evidence.
  4. Use GROUP BY to spot patterns and inconsistencies.
  5. Try subqueries/CTEs to solve the hardest questions.

What makes it beginner-friendly?

Each case shows you the table schema, and questions are designed to teach one concept at a time. If you get stuck, you can use the Reveal Answer feature to learn the correct SQL and keep moving.

Want fun SQL challenges right now? Choose a case and begin your first SQL mystery: Go to Cases.