About SQL Holmes: The Baskerville Files

SQL Holmes is a free detective game that teaches SQL. You read a fictional case file, write real queries against it and follow the clues across ten chapters until you can name the culprit.

How it works

  • Each chapter teaches one SQL idea, from SELECT to window functions.
  • Press Run as often as you like; Submit checks your answer. You get three attempts.
  • Hints cost points. About a third of chapters bring a case event, such as fog (a free hint) or a telegram (a free wrong answer).
  • Solve the case to earn a certificate with your detective rank.

The ten chapters

  1. Clue 1: SELECT + WHERE
  2. Clue 2: ORDER BY + LIMIT
  3. Clue 3: GROUP BY + COUNT
  4. Clue 4: INNER JOIN
  5. Clue 5: GROUP BY + HAVING
  6. Clue 6: Multi-table JOIN
  7. Deduction 1: Subqueries
  8. Deduction 2: CASE WHEN
  9. Confrontation: Window functions
  10. Unmasking: CTE + JOIN + window

FAQ

Is SQL Holmes free?

Yes. It is free to play with a Skillancy account.

Do I need to know SQL?

No. The first chapters teach SELECT and WHERE step by step, then the case gets harder.

Does my query run in the browser?

Yes. A real Postgres database runs in your browser; answers are checked on our server.

Is the story the original novel?

No. It uses public-domain character names with an original plot and an original culprit.

Link to us

Teaching SQL? Copy this link for your page or course notes.

<a href="https://skillancy.in/games/sherlock-sql">SQL Holmes: a free SQL detective game by Skillancy</a>

Take the caseLeaderboardsPrefer cricket? Play SQL Super OverData Analytics with Agentic AI program