SQL and Database Management Through Pop Culture#
Welcome to this interactive, openly licensed textbook for database design, SQL querying, security, performance, and PostgreSQL. Designed as a modern, hands-on introduction to data management, this book is built from the ground up for both active student engagement and seamless classroom adoption.
For Students#
Each chapter is structured as a self-contained, story-driven learning experience set in familiar pop-culture universes (including Star Trek, Mario Bros, Gotham City, Pokémon, and Emerald City Clinic). You can read each chapter in your browser or launch it directly in Google Colab with a single click.
There are no complex software installations, version mismatches, or setup hurdles—you can start writing and running SQL immediately. Interactive, auto-graded quizzes are built directly into the notebooks, giving you instant feedback on your SQL query writing and schema design skills as you read and practice.
For Instructors#
This curriculum is closely aligned with the CompTIA DataSys+ (DS0-002) certification exam, covering core database foundations, design, deployment, security, and integration. It provides a complete, zero-setup, active-learning framework featuring built-in, autograded quizzes and game-based review sets. Every single chapter features a unique pop-culture case study that helps make abstract database and SQL concepts approachable and memorable. As an Open Educational Resource (OER), it is freely shareable, adaptable, and optimized for digital publishing.
Textbook Table of Contents#
Each chapter is Google Colab-ready. Launch a notebook to execute code dynamically, or read the web version for clean offline study.
Chapter Review Games (Loop of the Recursive Dragon)#
Each chapter is supported by an RPG-style adaptive review set in the Loop of the Recursive Dragon review game. Select a chapter and play:
⚔️ Ch 1 — Foundations (Data, models, structures)
⚔️ Ch 2 — SELECT basics (Filtering, sorting, aggregates)
⚔️ Ch 3 — JOINs and sets (Inner, outer, unions)
⚔️ Ch 4 — Advanced retrieval (GROUP BY, HAVING, subqueries)
⚔️ Ch 5 — Database design (ER modeling, normalization, keys)
⚔️ Ch 6 — Writing data (INSERT, UPDATE, DELETE, triggers)
⚔️ Ch 7 — Views & governance (CTEs, data governance, GDPR)
⚔️ Ch 8 — Performance & ACID (Indexes, plans, transactions)
⚔️ Ch 9 — PostgreSQL (Postgres types, procedures, roles)
⚔️ Ch 10 — Database security (CIA triad, roles, SQL injection, encryption)
⚔️ Ch 11 — Architecture & testing (Design patterns, deployment models)
⚔️ Ch 12 — Data integration (ETL, formats, AI tooling)
⚔️ Ch 13 — Capstone review (Comprehensive final project prep)
Coming Soon#
Scenario-based case studies on stewardship, policy, compliance, quality controls, governance risk, and data lifecycle management.