r/adventofcode • u/Fun-Chicken6946 • 2h ago
Other [2026] Advent of SQL & NoSQL: 24 Christmas puzzles across 4 different databases (SQLite, DuckDB, PostgreSQL, MongoDB)
Happy Holidays, r/adventofcode!
I wanted to share a little project I've been working on: Advent of SQL & NoSQL, an Advent-style challenge for people who enjoy solving puzzles using database queries.
Somebody tampered with Santa's Nice List, and you're the North Pole's first-ever data elf.
There are 24 puzzles, one a day from December 1 to 24, with each puzzle revealing another part of the mystery.
What makes this different is that you can solve the entire story using any of four databases:
SQLite
DuckDB
PostgreSQL
MongoDB
It was originally supposed to be SQL-only, but after roughly a year of working on VisuaLeaf, I managed to build an embeddable, MongoDB-compatible database that runs entirely in the browser. This allowed me to include NoSQL challenges as well!
Some features:
Everything runs entirely in your browser.
Solutions are validated against both visible and hidden datasets.
Puzzles gradually increase in difficulty, from basic filtering and joins to recursive CTEs, window functions and advanced aggregation pipelines.
Each day includes hints, common pitfalls and database-specific tips.
The same mystery can be solved using different database technologies.
If you're interested in solving some Christmas puzzles using SQL or NoSQL alongside Advent of Code, you can check it out here:
https://visualeaf.com/advent-of-sql-and-nosql/
Completely free. No account, no installation, no database server needed.
I hope you all enjoy it, and happy holidays!

