Volume 01 · Table of contents
Contents.
Thirty-two chapters in eight tracks. Each chapter states one idea, shows the table or schedule that makes it concrete, and ends with a drill you can actually answer.
Completed0%
00 / 32
7h of guided reading
01
Foundations
3 chapters01What is a DBMS?Why databases exist, what a DBMS manages, who uses it, and the advantages and limitations of a database over flat files.Data, information, and metadataDBMS as a data managerFile system versus DBMS02DBMS Architecture & ModulesThe three-schema architecture, query processing, storage management, and the software modules that make a DBMS work.External, conceptual, and internal schemasLogical and physical data independenceQuery parser, optimizer, and executor03Data Models OverviewHierarchical, network, relational, and object models — how each represents entities and relationships.Data model definitionHierarchical modelNetwork model
02
Modeling
4 chapters04ERD FundamentalsEntities, attributes, keys, and the first steps of turning a real-world domain into an entity-relationship diagram.Entity and entity setAttributes: simple, composite, multivalued, derivedKeys in an ERD05ERD Relationships & ConstraintsRelationships, cardinality, participation, weak entities, and how to read a relationship diamond correctly.Relationship and relationship setDegree: unary, binary, ternaryCardinality: 1:1, 1:N, M:N06Hierarchical Database ModelRecords arranged as a tree: one parent, many children. Learn the model, its access path, and its structural limits.Tree-structured recordsParent-child relationshipsNavigational access07Network Database ModelA graph of records connected by sets. It solves the hierarchical many-to-many problem but makes navigation complex.Records and setsOwner and member recordsMany-to-many relationships
03
Relational Model
5 chapters08Relational Model: Domains, Tuples & CardinalityRelations as tables: domains, attributes, tuples, degree, cardinality, and why the model is declarative.Relation, tuple, attribute, domainDegree and cardinalitySchema versus instance09Codd's 12 RulesThe rules that define a truly relational DBMS, what they require, and where real systems compromise.Information ruleGuaranteed access and systematic null handlingCatalog and view rules10Relational Algebra: Selection & ProjectionSelection filters rows; projection chooses columns. Learn the operators, notation, and the order that matters.Selection σ (sigma)Projection π (pi)Predicates11Relational Algebra: Set OperationsUnion, intersection, and difference. Learn the union-compatible requirement and the result of each operation.Union compatibilityUnionIntersection12Relational Algebra: Cartesian Product & JoinsCartesian product, theta join, equi join, and natural join — how rows are matched and why joins are the heart of SQL.Cartesian productTheta joinEqui join
04
Keys & Constraints
3 chapters13Keys: Superkey, Candidate, Primary & ForeignHow a relation identifies rows: superkeys, candidate keys, primary keys, alternate keys, and foreign keys.SuperkeyCandidate keyPrimary key14Integrity ConstraintsEntity integrity, domain integrity, and referential integrity — the rules that keep a database consistent.Entity integrityDomain integrityReferential integrity15Assertions & TriggersAssertions enforce global conditions; triggers run code on insert, update, or delete. Learn when each is appropriate.AssertionsTrigger events and timingRow-level versus statement-level triggers
05
Normalization
5 chapters16Functional DependenciesX → Y means X determines Y. Learn Armstrong's axioms, closure, and how dependencies drive normalization.Functional dependencyArmstrong's axiomsAttribute closure17Anomalies: Insert, Update & DeleteBad schemas cause redundant data and inconsistent updates. See the three anomaly types in a concrete table.Insertion anomalyUpdate anomalyDeletion anomaly18Normalization: 1NFFirst normal form requires atomic values and no repeating groups. Learn the rule and decompose a multivalued table.Atomic attributesRepeating groupsMultivalued attributes19Normalization: 2NFSecond normal form removes partial dependencies on part of a composite key. Learn the test and the decomposition.Composite primary keyPartial dependency2NF test20Normalization: 3NFThird normal form removes transitive dependencies. Learn the rule, the decomposition, and the trade-offs.Transitive dependency3NF testDecomposition into 3NF
06
Transactions & Recovery
4 chapters21Transactions & ACIDA transaction is a unit of work. Learn atomicity, consistency, isolation, and durability with bank-transfer examples.TransactionAtomicityConsistency22Transaction StatesActive, partially committed, committed, failed, and aborted. Trace a transaction through its lifecycle.Active statePartially committed stateCommitted state23Recovery: Logs & CheckpointsWrite-ahead logging, redo, undo, and checkpoints. Learn how a DBMS recovers after a crash.Write-ahead loggingRedo and undoCheckpoints24Recovery: Shadow PagingShadow paging keeps two page tables and switches atomically. Learn the idea, its benefits, and its costs.Current page tableShadow page tableAtomic switch
07
Concurrency
3 chapters25Concurrency ProblemsLost updates, dirty reads, unrepeatable reads, and phantoms. See how interleavings break correctness.Lost updateDirty readUnrepeatable read26Locking & Two-Phase LockingShared and exclusive locks, lock compatibility, two-phase locking, and deadlocks.Shared lockExclusive lockLock compatibility matrix27Timestamp & Optimistic ControlOrder transactions by timestamp, validate at commit, and compare optimistic and pessimistic control.Timestamp orderingRead and write timestampsValidation phase
08
Distributed & Analytics
5 chapters28Distributed DatabasesData spread across sites, transparency, and the CAP trade-off. Learn why distribution is both powerful and hard.Distributed databaseLocation and fragmentation transparencyReplication transparency29Fragmentation & ReplicationHorizontal and vertical fragmentation, replication, and the trade-offs between availability and consistency.Horizontal fragmentationVertical fragmentationReplication30Data WarehousingSeparate analytical storage from transactional systems. Learn ETL, star schemas, OLAP, and data marts.Operational versus analytical processingETL pipelineStar and snowflake schemas31Data MiningFind patterns in large data: classification, clustering, association rules, and the tools used to do it.ClassificationClusteringAssociation rules32HDB vs NDB vs RDB & Data Mining vs QueryCompare the three classic database models and distinguish a data-mining query from an ordinary database query.Hierarchical versus network versus relationalNavigation versus declarative accessData mining versus normal query