December 1 – 24, 2026 · 4 databases · 1 mystery
Advent of SQL & NoSQL
The Nice List Heist: choose your adventure
Thirty good children have landed on the naughty list while nobody was looking. You're the North Pole's first data elf, and you get to pick your tools. Every path tells the same story, one door a day, but each one solves it the way its database does best.
Not sure? Tell the elves about yourself
Four paths through the snow
Switch any time: progress is saved per path, in this browser.
-
SQL · Turso
Advent of SQL
Classic SQL on Turso, the SQLite-compatible database. Opens instantly, the dialect you meet everywhere.
SELECT date(logged_at) FROM nice_list_log WHERE time(logged_at) < '05:00' -
SQL · DuckDB
Advent of DuckDB
The analyst's SQL: QUALIFY, ASOF JOIN, GROUP BY ALL, lists, UNPIVOT and macros. A DuckDB trick every day.
FROM pairs p ASOF JOIN door_swipes s ON s.swiped_at <= p.logged_at -
SQL · PostgreSQL
Advent of Postgres
Real PostgreSQL in your browser: DISTINCT ON, range types, arrays, LATERAL, FILTER and SQL functions.
SELECT DISTINCT ON (e.id, s.elf_id) … ORDER BY …, s.swiped_at DESC -
NoSQL · mongosh
Advent of MongoDB
NoSQL: aggregation pipelines, $lookup, $graphLookup and $setWindowFields in mongosh.
{ $graphLookup: { from: "elves", startWith: …, depthField: … } }
Same story, different superpowers
- One mystery. Every path has the same 24 chapters, the same suspects and the same ending. Only the queries change.
- Real databases, in your browser. Turso, DuckDB, PostgreSQL (PGlite) and a MongoDB-compatible engine run on this page. Nothing to install.
- A trick a day. On the SQL paths, each day shows one feature of that engine:
QUALIFYandASOF JOINon DuckDB,DISTINCT ONand range types on Postgres, date functions and query plans on Turso. - A prize at the end. Finish all 24 days and you can download a certificate with your name on it, signed by Head Elf Pepper Mintwhistle. Share it, frame it, or put it on your LinkedIn.
Which one should I pick?
- Advent of SQL. Classic SQL on Turso, the SQLite-compatible database. Opens instantly, the dialect you meet everywhere.
- Advent of DuckDB. The analyst's SQL: QUALIFY, ASOF JOIN, GROUP BY ALL, lists, UNPIVOT and macros. A DuckDB trick every day.
- Advent of Postgres. Real PostgreSQL in your browser: DISTINCT ON, range types, arrays, LATERAL, FILTER and SQL functions.
- Advent of MongoDB. NoSQL: aggregation pipelines, $lookup, $graphLookup and $setWindowFields in mongosh.
- Ambitious? Play two paths and compare: the day pages link to the same puzzle on every other path.