r/SQL • u/innovatorved • 4d ago
Discussion I built a free, open-source interactive guide to SQL & Database Internals with an in-browser WASM SQLite 3 workbench
Hi everyone,
I wanted to share a free, open-source project I've been building called SQL in Depth, aimed at going beyond basic SQL syntax into database internals from first principles.
Live site: https://sql-in-depth.vedgupta.in
GitHub repo: https://github.com/innovatorved/sql-in-depth
What's included:
- 180 structured units covering relational theory, indexing, storage engines, query planning/execution, transactions, and concurrency
- 36 interactive simulators to visualize how database internals actually behave
- An in-browser WASM SQLite 3 Workbench so you can run queries and experiment directly without local setup
- A Table-Level Relational Visualizer to inspect joins, filtering, and relational operations step by step
Everything is free, open-source, and runs directly in the browser. I'd really appreciate any feedback from the r/SQL community — especially on topics that could go deeper, edge cases in the simulators, or anything that could be made clearer.
2
u/mirinai_ai 3d ago
Nice scope. Going by the topic list, a few areas that trip people up in real work and don't seem to have their own unit, unless I missed them:
Dates and time zones: timestamp vs timestamptz in Postgres, the fact that SQLite has no date type and stores dates as text or numbers, why grouping by day gives different totals depending on the session time zone, and days that are 23 or 25 hours long around daylight saving changes.
Differences between the two engines you already ship. SQLite will store 'abc' in an INTEGER column unless the table is declared STRICT, and LIKE is case-insensitive for ASCII in SQLite but case-sensitive in Postgres. Since the workbench has both, a mode that runs the same query on each and highlights where the results differ could be a useful exercise in itself.
Collation and text comparison more generally: case and accent sensitivity, how sort order changes with the collation, and why a unique constraint can still allow both 'Smith' and 'smith'.
1
u/h4xz13 3d ago
This is pretty cool! I had built something similar with Postgres in the browser for teaching SQL. pgsql.sequel.sh