SQL Lab
ScaleDojo Learn: SQL Fundamentals
Learn SQL from zero to hero while solving the Vantage Systems breach data mystery.
Or read the history behind it
The Database Chronicles - How relational query languages revolutionized software.
Compare stats and compete with top...
CHALLENGE MAP
Progressive SQL Mystery Curriculum
Solve levels sequentially - each clear unlocks the next challenge
Act 1
#1 The Vanishing CTO
EasyFresherSELECT • WHERE
#2 Last Seen
EasyFresherORDER BY • LIMIT
#3 Who Else Was There
EasyFresherDISTINCT
#4 The Security Lead
EasyFresherAND • Combining Conditions
#5 After Dark
EasyFresherComparison Operators
#6 The Unsigned Visitor
EasyFresherIS NULL
#7 Inside Access
EasyFresherIN
#8 The Critical Window
EasyFresherBETWEEN
#9 The Money Men
EasyFresherLIKE • Wildcards
#10 No Exit
EasyFresherORDER BY • Reading Timelines
Act 2
#11 Follow the Money
Easy-MediumSDE 1COUNT
#12 The Big Number
Easy-MediumSDE 1MAX
#13 Bleeding Out
Easy-MediumSDE 1SUM
#14 The Baseline
Easy-MediumSDE 1AVG
#15 Vendor Roll Call
Easy-MediumSDE 1StripeGROUP BY • COUNT
#16 The Heavy Hitters
Easy-MediumSDE 1StripePayPalGROUP BY • HAVING • SUM
#17 Midnight Money
Easy-MediumSDE 1StripeDate & Time Functions
#18 The Doctored Invoice
Easy-MediumSDE 1PayPalComparing Columns
#19 The Spike
Easy-MediumSDE 1StripeGROUP BY • strftime
#20 The Discretionary Drain
Easy-MediumSDE 1DISTINCT • WHERE
Act 3
#21 Names, Not Numbers
MediumSDE 2INNER JOIN
#22 The Whistleblower
MediumSDE 2JOIN • LIKE
#23 Come Alone
MediumSDE 2Self-referencing JOINs • Table Aliases
#24 The Ghost
MediumSDE 2LEFT JOIN • IS NULL
#25 Damage Control
MediumSDE 2JOIN
#26 Knock Knock
MediumSDE 2JOIN • Filtering
#27 The Source Account
MediumSDE 2JOIN
#28 The Empty Chairs
MediumSDE 2LEFT JOIN • IS NULL
#29 Sessions Left Open
MediumSDE 2JOIN • IS NULL
#30 The Cleanup Crew
MediumSDE 2Multiple JOINs • LIKE
Act 4
#31 Above the Waterline
Medium-HardSDE 2Scalar Subquery
#32 Shells on the Books
Medium-HardSDE 2PayPalIN Subquery
#33 The Common Thread
Medium-HardSDE 2PayPalGROUP BY • HAVING • COUNT
#34 Not on the List
Medium-HardSDE 2StripeEXCEPT
#35 All the Outflows
Medium-HardSDE 2UNION
#36 The Whale
HardSDE 3Subquery with MAX
#37 The Funnel
HardSDE 3CTE (WITH)
#38 Two Levels Down
HardSDE 3Nested Subqueries
#39 Built to Vanish
HardSDE 3Date Arithmetic • julianday
#40 The Alias
HardSDE 3CTE (WITH) • IN Subquery
Act 5
#41 The Million Mark
HardSDE 3AmazonNetflixWindow Functions • SUM OVER
#42 Top of Each Stack
HardSDE 3AmazonUberROW_NUMBER • PARTITION BY
#43 The Hole in the Patrol
HardSDE 3UberDoorDashLAG • Window Ordering
#44 The Lion's Share
HardStaff+AmazonNetflixWindow over Aggregate • Percent of Total
#45 Against Their Own Average
HardSDE 3Correlated Subquery
#46 First Contact
ExpertSDE 3MetaLinkedInMIN OVER • PARTITION BY
#47 The Alibi Cracks
ExpertSDE 3Filtering • Timestamps • Synthesis
#48 Follow the Rank
ExpertStaff+AmazonNetflixUberRANK • Window over GROUP BY
#49 The Last Message
ExpertSDE 3MAX • Synthesis
#50 Name the Mastermind
LegendaryStaff+AmazonGoogleCTE Chains • Synthesis • The Whole Toolbox