$ cd ~/learn/dbms
Database Management Systems
ER model, relational algebra, SQL, normalization, transactions, concurrency, indexing and NoSQL.
Core Systems/9 Lessons
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.
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.
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.
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.
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.
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.
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.
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.
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.