Solve real business mysteries using SQL.

Start investigating
case_001 — The Tuesday Anomaly
PostgreSQL 16

Case Brief

The Tuesday Anomaly

Revenue is down 34% every Tuesday for 8 weeks.

CEO suspects a competitor. Data team disagrees. You have orders, customers, and discounts.

Routine~25 min

Tables

orders

id, customer_id, total_amount, day_of_week

customers

id, name, email, tier

discount_codes

id, code, valid_from, valid_until

Query

⌘ Enter
scroll down to run the demo…

Results

press ▶ Run to execute

0 real business mysteries
4 difficulty tiers
real PostgreSQL 16 data

Not another SQL tutorial.

We don't teach syntax. We train reasoning.

Other platforms

A clean exercise with one correct answer already in mind
Sanitized sample data, scrubbed of anything unfamiliar
Hints that quietly hand you the query
Pass or fail against a hidden answer key

DebugWho

A real case with a business impact and no rubric
Thousands of unfiltered rows — the anomaly is actually in there
Hints that ask the next question, never the answer
You write the finding yourself, no answer key to check against

How investigations work

  1. Step 01

    Read the case

    A real business problem. No instructions, no hand-holding.

  2. Step 02

    Explore the tables

    Real schemas, thousands of rows. Nothing is pre-cleaned for you.

  3. Step 03

    Write queries

    SELECT, JOIN, aggregate. Your only tool is SQL.

  4. Step 04

    Follow the clues

    Socratic hints nudge your thinking — they never hand you the query.

  5. Step 05

    Find the anomaly

    The pattern that doesn't belong. That's the real signal.

  6. Step 06

    Submit your conclusion

    State what happened and why. Right, or you missed something.

  7. Step 07

    Climb the ranks

    Every solve earns points toward your detective rank — Intern to Chief — and lights up your skill map.

Real tables. Real anomalies.

Thousands of rows, not sanitized sample data. The bug is really in there.

orders

48,112 rows

Most days look normal — until they don't.

customers

9,466 rows

A few of them shouldn't be possible.

payments

51,209 rows

Some don't match any order.

promo_engine

37 rows

One rule never stopped firing.

refund_report

1,284 rows

A handful arrived before the sale.

Four tiers. One real ladder.

Cut your teeth on routine cases, then take on tricky, complex, and cold cases.

Routine

50 pts

Filters, aggregates, GROUP BY. Find what's obviously wrong.

Tricky

100 pts

JOINs, subqueries, timezones. The bug hides in the relationship.

Complex

200 pts

Window functions, CTEs. The bug hides in a pattern over time.

Cold Case

400 pts

Multi-table, open-ended. Nobody tells you which table lies.

This is how real analysts think.

You're not learning SQL. You're learning how to think with data.

Thinking with SQL, not memorizing syntax
Investigating production-style issues
Reading unfamiliar schemas cold
Asking better questions
Finding patterns hidden in messy data
Debugging with no answer key

Built for real investigation.

A real editor, not a toy box

Full syntax highlighting, autocomplete, and the keyboard shortcuts you already use daily.

Thousands of rows, one bug in there somewhere

No sanitized sample tables. Every schema is built to hide its anomaly in real data.

Nothing you tried gets lost

Every query you ran is saved, so you can retrace exactly how you found it.

Hints that make you think, not skip ahead

AI asks the next question instead of writing the query. You still have to solve it.

CASE CLOSED★★★★★

Finally, SQL problems that feel like real work.

CASE SOLVED★★★★★

I found the bug before I even knew what JOIN was.

CASE CLOSED★★★★★

The hints never give it away. It forces you to actually think.

Simple pricing.

Start free. Upgrade when the cases get harder.

Free

$0

Forever free

  • 5 free cases
  • 5 hints per case
  • Detective rank
Start free

Pro

Popular
$149/yr

Save $199 vs. paying monthly — or $29/month

  • All cases, all levels
  • Unlimited hints
  • CSV export
  • Full skill map
  • Early access to new cases
Start Pro

See full pricing, including India pricing →

Some people watch SQL tutorials.

Others solve real business mysteries.

Start your first investigation

No credit card required.