Skip to content
Chethan Yadav_

$ cd ~/learn/dbms

Database Management Systems

ER model, relational algebra, SQL, normalization, transactions, concurrency, indexing and NoSQL.

Core Systems/9 Lessons

All subjects
  1. Lesson 01 · 4 min read

    Introduction to DBMS

    What a DBMS is, file system vs DBMS, data models, three-schema architecture, data independence, SQL language categories, and DBMS architectures.

  2. Lesson 02 · 5 min read

    Entity-Relationship Model

    Entities, attributes and their types, relationships, cardinality, participation, weak entities, generalization, specialization, aggregation, and converting ER diagrams to tables.

  3. Lesson 03 · 5 min read

    Relational Model, Keys and Relational Algebra

    Relations, tuples and domains, all types of keys, integrity constraints, relational algebra operators, joins in algebra, and relational calculus.

  4. Lesson 04 · 6 min read

    SQL

    SQL query structure and execution order, joins, aggregation with GROUP BY and HAVING, subqueries, set operations, views, stored procedures, triggers, window functions, and common interview queries.

  5. Lesson 05 · 6 min read

    Functional Dependencies and Normalization

    Anomalies, functional dependencies, Armstrong's axioms, attribute closure, finding candidate keys, 1NF to BCNF, 4NF, 5NF, lossless and dependency-preserving decomposition, and denormalization.

  6. Lesson 06 · 5 min read

    Transactions and ACID

    Transactions, ACID properties and how each is implemented, transaction states, schedules, conflict and view serializability, precedence graphs, and recoverable, cascadeless and strict schedules.

  7. Lesson 07 · 6 min read

    Concurrency Control

    Read phenomena (dirty read, non-repeatable read, phantom, lost update), isolation levels, lock-based protocols, two-phase locking and its variants, deadlock handling, timestamp ordering, optimistic concurrency, and MVCC.

  8. Lesson 08 · 6 min read

    Indexing, B+ Trees and Query Processing

    File organization, primary, clustered, secondary and dense/sparse indexes, B-trees vs B+ trees, hash indexes, composite and covering indexes, when not to index, and query optimization basics.

  9. Lesson 09 · 6 min read

    Recovery, Storage and NoSQL

    Failure types, log-based recovery, write-ahead logging, deferred vs immediate update, checkpoints, ARIES, shadow paging, backups, OLTP vs OLAP, and NoSQL database types with BASE.