- Home
- Database Management Systems
Database Management Systems
How data is designed, stored, indexed and kept safe — from ER diagrams and BCNF to indexes, locking and crash recovery.
SQL Joins (INNER, LEFT, RIGHT, FULL)
Combine rows from two tables. Watch each join type match rows, fill in NULLs, and build its result table in 3D.
Functional Dependencies, Closure & Candidate Keys
A → B means A decides B. Grow the closure X⁺ one dependency at a time to find out whether X is a key, then find every candidate key.
Normalization (1NF, 2NF, 3NF)
Remove redundancy from tables step by step. Watch one messy table split into clean 1NF, 2NF and 3NF tables in 3D — and see which duplicate values disappear.
Transactions & ACID
Why a bank transfer never loses money even when the server crashes. See atomicity, consistency, isolation and durability in four 3D scenarios.
Conflict Serializability
Is an interleaved schedule as safe as running the transactions one by one? Draw an edge for every conflict and look for a cycle.
B+ Tree Indexing
The data structure behind database indexes. Insert keys, watch nodes split and the tree grow upward, and run range queries along the linked leaves.
Relational Algebra (Select and Project)
The maths behind SQL. Filter rows with selection σ, pick columns with projection π, and see duplicates disappear.
Deadlock Detection (Wait-For Graph)
Transactions that wait for each other forever form a cycle. Watch a depth-first search find it and the database abort a victim.
ER Diagram to Relational Schema
Turn an ER diagram into tables. Watch strong and weak entities, 1:1, 1:N and M:N relationships, and composite and multivalued attributes become tables, keys and foreign keys in 3D, one rule at a time.
Concurrency Control (2PL and Timestamp Ordering)
How a database lets transactions run at the same time without breaking each other's data. Run the same requests under two-phase locking, strict 2PL and timestamp ordering in 3D, and watch locks, waits, deadlocks and aborts.
BCNF and Lossless Decomposition
The strictest common normal form. Find the dependency that breaks BCNF, split the relation in two without losing data, repeat until every part is in BCNF, and see in 3D which dependencies survive.
Log-Based Recovery
How a database survives a crash. Choose when the system fails, then watch recovery in 3D. It reads the write-ahead log from the last checkpoint, redoes history, and undoes every transaction that never committed.
Static and Extendible Hashing
How a hash index stays fast as the data grows. Insert keys in 3D, watching full buckets split and the directory double only when it must, and compare it with static hashing and its growing overflow chains.
About Database Management Systems
Databases stay fast and correct thanks to a few clever ideas. See a B+ tree split and grow as keys are inserted, normalise a messy table into 1NF, 2NF and 3NF, watch every SQL join type build its result row by row, and follow transactions through crashes, recovery and locks to understand ACID. Relational algebra and deadlock detection explain how queries are built and how locks go wrong. Map an ER diagram to tables, decompose a relation into BCNF, run the same schedule under two-phase locking and timestamp ordering, recover a crashed database from its log, and watch an extendible hash index split its buckets.