Database Management Systems
Theory and engineering of database systems from ER modeling, relational algebra, and SQL through normalization, indexing, ACID transactions, NoSQL, vector databases, and RAG pipelines.
Open slide PDFs directly in your browser, read LaTeX lecture notes and worksheets (PDF), preview PowerPoint decks online, or download laboratory notebooks without login walls.
- M1 Week 1-2
Foundations & Entity-Relationship Modeling
DBMS architecture, ER diagrams, weak entity sets, and extended ER concepts.
- M2 Week 3
Relational Model & ER Mapping
Relations, schemas, primary/foreign keys, integrity constraints, and ER-to-relational translation.
- M3 Week 4-5
Relational Algebra & Relational Calculus
Selection, projection, joins, set operations, division, TRC, and DRC.
- M4 Week 6-7
SQL Foundations (DDL & DML)
Schema creation, constraints, SELECT filtering, sorting, INSERT, UPDATE, and DELETE.
- M5 Week 8-9
Intermediate SQL: Aggregation, Joins & Subqueries
GROUP BY, HAVING, inner/outer joins, correlated subqueries, and nested expressions.
- M6 Week 10
Advanced SQL: CTEs & Window Functions
Recursive common table expressions, ranking/analytic windows, triggers, and stored procedures.
- M7 Week 11-12
Functional Dependencies & Normalization
Armstrong's axioms, lossless join decompositions, 1NF through BCNF, and 4NF.
- M8 Week 13
Storage, Indexing & Revision Notes
B+ trees, hash indexing, heap files, buffer management, and quiz/ICA revision notes.
- M9 Week 14
Query Processing & Transactions
Query optimization pipeline, ACID guarantees, two-phase locking (2PL), and ARIES recovery.
- M10 Week 15-17
Modern & AI Data Systems (NoSQL, Vectors & RAG)
Document/key-value stores, vector indexing, embeddings, RAG architectures, and cloud databases.
Weekly Schedule
| Session | Frequency | Notes |
|---|---|---|
| Lectures | 3 sessions per week | 50 minutes each |
| Tutorials | 1 session per week | SQL problem sets and schema design |
Prerequisites & Stack
Introductory Python programming and discrete structures.
Environment: PostgreSQL 16 · SQL Server 2022 / Azure SQL Edge · SSMS · DBeaver · Python + pgvector
Learning Outcomes
- 01 Design ER schemas and translate them into normalized relational tables.
- 02 Write relational algebra and tuple/domain relational calculus queries.
- 03 Compose complex SQL queries with joins, CTEs, window functions, triggers, and stored procedures.
- 04 Apply functional dependencies and normalize schemas through BCNF and 4NF.
- 05 Explain disk storage layout, B-tree/hash indexing, ACID transactions, 2PL, and recovery.
- 06 Contrast relational, document, key-value, and vector databases and build a RAG pipeline.
Assessment & Grading
Fortnightly SQL exercises and schema sketches.
Covers ER modeling, relational model, and relational algebra (M1-M3).
Covers basic through advanced SQL (M4-M6).
RAG pipeline or recommendation backend with full relational schema.
Full syllabus examination emphasizing M7-M10.
Textbooks & Study Tools
- Database System Concepts (7th ed.)Required
Abraham Silberschatz, Henry Korth, and S. Sudarshan (McGraw-Hill, 2019)
- Fundamentals of Database Systems (7th ed.)Reference
Ramez Elmasri and Shamkant Navathe (Pearson, 2015)
- Learning SQL (3rd ed.)Reference
Alan Beaulieu (O'Reilly, 2020)
Cross-platform database GUI supporting PostgreSQL, SQL Server, and SQLite.
Course Policies & Reuse
Attendance
Attendance is expected at all lectures and labs. Lab exercises are completed and submitted before each session ends.
Late Work
Deadlines are fixed in advance. Late submissions are not accepted unless pre-approved under official institute procedures.
Academic Integrity
Discussing concepts with peers is encouraged; copying or sharing code is prohibited. Every submitted line must be your own work that you can explain.
All lecture notes, slides, and laboratory materials for Z2004 are licensed under CC BY-NC-SA 4.0 . ShareAlike required; commercial use prohibited without permission.