Skip to main content

SQL in Depth: Learning SQL & Database Internals with an In-Browser WASM SQLite Workbench

Updated 2 min readMarkdown

Most SQL tutorials stop at syntax (JOIN, GROUP BY, window functions) without explaining why a query is slow or how the database engine actually executes it.

Reading about B-Trees, query planners, and transaction isolation in static articles helps, but passive reading rarely sticks until you can run queries and trace what the engine is doing under the hood.

That's why I built SQL in Depth — a free, open-source interactive textbook covering both SQL and database internals from first principles. Everything runs right in your browser with no accounts, no paywalls, and no local database setup required.

What's Inside

  • Interactive WASM SQLite 3 Workbench — run real SQLite 3 queries directly in the browser alongside each lesson, inspect query plans, and experiment with schemas.
  • Table-Level Relational Visualizer — watch how joins, filters, groupings, and transformations operate on real rows step by step.
  • 180 Structured Units — progressing from relational modeling and core SQL semantics to indexing, query optimization, storage engines, and transactions.
  • 36 Interactive Simulators — hands-on visualizations of database internals and engine trade-offs.

Feedback & Contributions

Whether you're preparing for backend engineering interviews, debugging slow production queries, or learning database internals from scratch, I'd love for you to try it out.

If you find it useful, starring the repo on GitHub helps others discover it—and issues, PRs, or ideas for new simulators are always welcome!

No comments yet. Be the first to comment.