IIT Madras Zanzibar · Teaching

← All Courses

Z2004 · BS Core · Even Semester Archive

Database Management Systems

Relational data modeling, ER design, relational algebra, SQL, normalization, storage pages, B+ tree indexing, ACID transactions, and modern NoSQL and vector retrieval systems, paired with tested SQLite/Python labs and a semester database project.

Term
Even Semester, March 2026 – July 2026
Credits
10 (Core) · Structure 3-1-0-0-6-10
Instructor
Dr. Innocent Nyalala · Room 105 (F1) · Office Hours: Wednesday, 2:00 PM – 4:00 PM · innocent@iitmz.ac.in
Course Links
Question Bank · Lab Explorer & SQL Previews · SQL & Normalization Cheat Sheet (PDF) · Worked Engineering Workbook (PDF) · End-Sem Mock Exam & Solutions (PDF) · Self-Test Suite (.py) · Schedule PDF · Project Guidelines · School SQL Schema (.sql) · Faculty Course Page ↗

Schedule

SessionFrequencyDetails
Lecture3 per week50 min each
Tutorial1 per week50 min · SQL problem sets, schema design, and SQLite labs

Lectures & Module Summaries (M1–M10)

ModuleWeeksTopicSlides & LaTeX Summaries
M1 1–2 Foundations and Data Modelling: DBMS intro, ER model, weak entities, extended ER
M2 3 Relational Model: relations, schemas, keys, integrity constraints
M3 4–5 Relational Algebra: selection, projection, join, set operations, division
M4 6–7 SQL Foundations: DDL, DML, SELECT, WHERE, ORDER BY
M5 8–9 SQL Intermediate: aggregation, GROUP BY, joins, subqueries
M6 10 SQL Advanced: CTEs, window functions, triggers, stored procedures
M7 11–12 Normalization and FD Theory: functional dependencies, Armstrong's axioms, 1NF through BCNF, 4NF
M8 13 Storage and Indexing: B-tree, hashing, heap files, buffer pool
M9 14 Query Processing and Transactions: query pipeline, ACID, 2PL, recovery
M10 15–17 Modern and AI Data Systems: NoSQL, vector databases, embeddings, RAG pipelines, cloud databases

Additional reference documents: Course Schedule · SQL Reference · Project Guidelines · School DB DDL (.sql)

SQLite3, Python & SQL Reference Labs

Each module pairs an assertion-tested Python/SQLite3 script (code/) with an executed Google Colab notebook (labs/), or browse all snippets inline in the Z2004 Lab Explorer & SQLite3 Code Previews.

LabTopics CoveredCode & Notebooks
Lab 1ER-to-Relational DDL, Foreign Keys & Cascade Constraints (SQL DDL)Python (.py) Notebook (.ipynb) Colab ↗
Lab 2Relational Algebra Engine: Select, Project, Natural Join & DivisionPython (.py) Notebook (.ipynb) Colab ↗
Lab 3Complex SQL Joins, Views, CTEs & Window FunctionsPython (.py) Notebook (.ipynb) Colab ↗
Lab 4Normalization: FD Closure, Candidate Keys & BCNF CheckerPython (.py) Notebook (.ipynb) Colab ↗
Lab 5B+ Tree Range Scans & SQLite Query Plan BenchmarkingPython (.py) Notebook (.ipynb) Colab ↗
Lab 6ACID Transactions, Rollback Atomicity & Conflict SerializabilityPython (.py) Notebook (.ipynb) Colab ↗
Lab 7Query Optimization, Join Algorithms (BNL, Sort-Merge, Grace Hash) & EXPLAIN PlansPython (.py) Notebook (.ipynb) Colab ↗
Lab 8NoSQL Document & Property Graph Patterns vs. SQLite JSON1 & Recursive CTE ParityPython (.py) Notebook (.ipynb) Colab ↗

Grading

ComponentWeightDetails
Assignments (ICA)10%Fortnightly SQL puzzles, schema sketches, think-pair-share.
Quiz 115%Apr 16–17 · Covers M1 (ER), M2 (Relational Model), M3 (Relational Algebra).
Quiz 220%May 28–29 · Covers M4–M6 (SQL Basics through Advanced).
Semester Project20%RAG Pipeline or Recommendation Engine · Milestones throughout the semester · Final submission Jun 30, 2026.
End-semester examination35%Jun 29 – Jul 3, 2026 · All modules with emphasis on M7–M10.

Learning Outcomes

  1. Design and refine entity-relationship diagrams for real-world data requirements, and convert ER schemas to normalized relational schemas.
  2. Write relational algebra expressions for queries involving selection, projection, join, set operations, and division.
  3. Compose correct and efficient SQL queries using joins, subqueries, aggregation, window functions, CTEs, and stored procedures in SQL Server and PostgreSQL.
  4. Apply functional dependency theory and normalization through BCNF and 4NF to eliminate redundancy and anomalies.
  5. Explain how databases store data on disk, and describe B-tree and hash-based index structures and their effect on query performance.
  6. Describe the ACID properties of transactions and explain concurrency control (2PL) and crash recovery mechanisms.
  7. Compare relational, document, key-value, and vector database models, and implement a RAG pipeline over a vector database.

Resources

Required Textbook
Database System Concepts (7th ed.) · Abraham Silberschatz, Henry Korth, S. Sudarshan · McGraw-Hill, 2019
Reference Textbook
Fundamentals of Database Systems (7th ed.) · Ramez Elmasri, Shamkant Navathe · Pearson, 2015
Reference Textbook
Learning SQL (3rd ed.) · Alan Beaulieu · O'Reilly, 2020
Database Software
Primary: SQL Server 2022 (Windows) or Azure SQL Edge (Docker). Secondary: PostgreSQL 16 and Python SQLite3.

Policies

Late work
Late work is not accepted. Deadlines are fixed and announced in advance; submit what you have by the deadline. No extensions.
Academic integrity
All SQL you submit must reflect your own understanding. Copying another student's queries or allowing your work to be copied is a violation. Using AI to generate SQL and submitting it without understanding is a violation; if you use AI as a debugging aid, declare it.
Attendance
Attendance at lectures and tutorials is expected. Tutorials include in-class activities that cannot be made up.