Complete Syllabus

8 Modules. 50+ Topics. Theory + Hands-On SQL + Interview Prep.

Click any module to expand.

01

Database Fundamentals & Architecture

What databases are, why they exist, and how they're structured internally

1.1 Why Databases Exist

Problems with file-based storage: data redundancy, inconsistency, no concurrent access, no security. How DBMS solves these problems. Data vs information. Database vs DBMS vs database system. Real-world database applications students use daily.

1.2 DBMS Architecture: Three-Schema

External (view) level, conceptual (logical) level, internal (physical) level. Data independence: logical and physical. Why three levels matter — changing storage doesn't break applications. Client-server vs three-tier architecture.

1.3 Data Models

Relational model (tables — the dominant model). Hierarchical (tree — legacy). Network (graph — legacy). Object-oriented. Document (MongoDB). Key-value (Redis). Column-family (Cassandra). Graph (Neo4j). When to use which model — the modern landscape.

1.4 Keys in Relational Model

Super key, candidate key, primary key, alternate key, foreign key, composite key. How keys enforce uniqueness and relationships. Surrogate keys vs natural keys — the design decision every database faces. Auto-increment IDs vs UUIDs.

1.5 Integrity Constraints

Domain constraints, entity integrity (primary key can't be NULL), referential integrity (foreign key must reference existing row). NOT NULL, UNIQUE, CHECK, DEFAULT constraints. What happens when constraints are violated — CASCADE, SET NULL, RESTRICT.

1.6 Database Users & DBA Role

Database Administrator (DBA): schema definition, access control, backup/recovery, performance tuning. Application developers: query writing, schema design. End users: data consumption. How roles map to real jobs at companies.

Placement relevance: "What is data independence?" "Difference between candidate key and primary key?" "What are integrity constraints?" — these foundational questions appear in TCS NQT, Infosys SP, and Wipro technical MCQ sections.
02

ER Modelling & Relational Design

Designing databases before writing SQL — the conceptual and logical design process

2.1 Entity-Relationship (ER) Model

Entities (strong, weak), attributes (simple, composite, multivalued, derived), keys (primary, partial). ER diagram notation. Designing an ER diagram from a problem statement — the skill tested in design questions.

2.2 Relationships & Constraints

Relationship types: one-to-one, one-to-many, many-to-many. Cardinality ratios: 1:1, 1:N, M:N. Participation constraints: total vs partial. Recursive relationships. Ternary relationships and when they're needed.

2.3 Extended ER: Specialisation & Generalisation

IS-A relationships: specialisation (top-down) and generalisation (bottom-up). Disjoint vs overlapping. Total vs partial specialisation. Aggregation. Mapping EER to relational schema. How inheritance works in database design.

2.4 ER to Relational Mapping

Step-by-step algorithm: strong entities → weak entities → 1:1 relationships → 1:N relationships → M:N relationships → multivalued attributes → specialisation. The mechanical process for converting any ER diagram to tables. Interview favourite: "Given this ER, write the schema."

2.5 Relational Algebra

Selection (σ), projection (π), union (∪), intersection (∩), set difference (−), Cartesian product (×), joins (natural, theta, equi, outer). Division operation. Why relational algebra matters: it's the theoretical foundation of SQL. Query equivalence and optimisation.

Placement relevance: "Draw an ER diagram for a library/hospital/banking system" is a standard 10-mark interview question. ER-to-relational mapping and relational algebra appear in GATE, TCS, and product company written rounds.
03

⭐ SQL — From Basics to Complex Queries

The most tested DBMS skill — writing SQL queries that produce correct results

3.1 DDL: CREATE, ALTER, DROP, TRUNCATE

Creating tables with data types (INT, VARCHAR, DATE, DECIMAL, BOOLEAN). Adding/dropping columns with ALTER. DROP vs TRUNCATE vs DELETE — the classic interview question. AUTO_INCREMENT / SERIAL for primary keys. CONSTRAINTS in CREATE TABLE.

3.2 DML: INSERT, UPDATE, DELETE

INSERT INTO ... VALUES, INSERT INTO ... SELECT. UPDATE with WHERE (forgetting WHERE updates ALL rows — the most dangerous SQL mistake). DELETE with WHERE. Multi-row INSERT. Conditional UPDATE with CASE.

3.3 SELECT: Filtering, Sorting & Aliasing

SELECT, WHERE, ORDER BY, LIMIT/OFFSET. Comparison operators, BETWEEN, IN, LIKE (%, _), IS NULL. Column aliasing (AS). DISTINCT for unique values. Execution order: FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY → LIMIT.

3.4 JOINs: INNER, LEFT, RIGHT, FULL, CROSS, SELF

INNER JOIN (matching rows from both tables). LEFT JOIN (all from left + matching from right). RIGHT JOIN. FULL OUTER JOIN. CROSS JOIN (Cartesian product). SELF JOIN (employee-manager hierarchy). The Venn diagram mental model. Multi-table JOINs. JOIN is THE most tested SQL topic.

3.5 Aggregate Functions & GROUP BY / HAVING

COUNT, SUM, AVG, MIN, MAX. GROUP BY for grouping rows. HAVING for filtering groups (WHERE filters rows, HAVING filters groups). COUNT(*) vs COUNT(column) — difference with NULLs. GROUP BY with multiple columns.

3.6 Subqueries: Scalar, Row, Table & Correlated

Subquery in WHERE (scalar subquery). IN with subquery. EXISTS vs IN — performance difference. Correlated subquery: inner query depends on outer query (re-executes per row). Subquery in FROM (derived table). Subquery in SELECT. "Find the second highest salary" — the classic correlated subquery question.

3.7 SET Operations: UNION, INTERSECT, EXCEPT

UNION (removes duplicates) vs UNION ALL (keeps duplicates). INTERSECT for common rows. EXCEPT/MINUS for difference. Rules: same number of columns, compatible data types. When to use SET operations vs JOINs.

Placement relevance: "Write a SQL query to..." is the single most asked DBMS interview question format. JOINs, GROUP BY with HAVING, subqueries (especially "second highest salary"), and correlated subqueries appear in every placement test — TCS, Infosys, Wipro, Cognizant, and every product company. If you learn one DBMS topic well, learn SQL.
04

⭐ Advanced SQL & Database Programming

Window functions, CTEs, views, stored procedures — the SQL that product companies test

4.1 Window Functions

ROW_NUMBER(), RANK(), DENSE_RANK() — the three ranking functions and their differences. LEAD(), LAG() for accessing adjacent rows. SUM/AVG/COUNT as window functions. OVER(PARTITION BY ... ORDER BY ...). ROWS BETWEEN for running totals. The most powerful SQL feature for analytics — and increasingly tested in interviews.

4.2 Common Table Expressions (CTEs)

WITH clause for readable, reusable query blocks. CTEs vs subqueries — readability and performance. Recursive CTEs: generating sequences, hierarchical data traversal (employee org chart), tree/graph traversal in SQL. When CTEs make a query 10x more readable.

4.3 Views & Materialised Views

CREATE VIEW — virtual tables that simplify complex queries. Security benefit: expose only specific columns. Updatable views vs read-only views. Materialised views: pre-computed results for performance. REFRESH strategies. When to use views vs CTEs vs subqueries.

4.4 Stored Procedures, Functions & Triggers

Stored procedures: reusable SQL blocks with parameters (IN, OUT, INOUT). Functions: return a value, usable in SELECT. Triggers: auto-execute on INSERT/UPDATE/DELETE events (BEFORE, AFTER). Advantages: reduced network traffic, business logic in DB layer. When stored procedures are appropriate vs when they're not.

4.5 DCL & TCL Commands

GRANT, REVOKE — controlling who can access what. Privilege types: SELECT, INSERT, UPDATE, DELETE, ALL. COMMIT, ROLLBACK, SAVEPOINT — transaction control. Why explicit COMMIT/ROLLBACK matters in production systems.

4.6 SQL Query Optimisation Basics

EXPLAIN / EXPLAIN ANALYZE — reading query execution plans. Sequential scan vs index scan. Why queries are slow: missing indexes, full table scans, unnecessary JOINs, SELECT * instead of specific columns. The 5 most common SQL performance mistakes and how to fix them.

Placement relevance: Window functions (RANK, ROW_NUMBER, LEAD/LAG) are now standard in product company SQL rounds — Amazon, Flipkart, Goldman Sachs, and analytics firms test these heavily. CTEs appear in complex query questions. "Optimise this slow query" is asked at every product company. These topics separate candidates who "know SQL" from candidates who are FLUENT in SQL.
05

Functional Dependencies & Normalisation

Designing databases that don't have redundancy, anomalies, or data integrity problems

5.1 Functional Dependencies

What X → Y means. Trivial vs non-trivial FDs. Finding all FDs from a given set. Closure of attributes (X⁺). Closure of FD set. Candidate key identification using closure. Armstrong's axioms: reflexivity, augmentation, transitivity.

5.2 Anomalies & Why Normalisation Matters

Insertion anomaly, update anomaly, deletion anomaly — concrete examples showing data corruption from poor design. Redundancy = wasted space + inconsistency risk. Normalisation eliminates anomalies by decomposing tables.

5.3 1NF, 2NF, 3NF, BCNF

1NF: atomic values, no repeating groups. 2NF: no partial dependencies (on part of composite key). 3NF: no transitive dependencies. BCNF: every determinant is a candidate key. Step-by-step normalisation with worked examples. The most asked DBMS theory topic after SQL.

5.4 4NF, 5NF & Denormalisation

4NF: no multi-valued dependencies. 5NF: no join dependencies. Why 4NF and 5NF are rarely tested but worth knowing. Denormalisation: deliberately adding redundancy for performance (read-heavy systems). When to normalise vs when to denormalise — the practical design trade-off.

5.5 Lossless Decomposition & Dependency Preservation

Lossless join: decomposed tables can be rejoined without losing data. How to verify lossless decomposition. Dependency preservation: all FDs are checkable without joins. Why both properties matter for correct normalisation. Trade-offs when you can't have both.

Placement relevance: "Normalise this table to 3NF/BCNF" is the second most asked DBMS interview question after SQL queries. Functional dependency closure and candidate key identification appear in GATE and product company written tests. Understanding 1NF/2NF/3NF/BCNF is non-negotiable for any DBMS interview.
06

Transactions, Concurrency & Recovery

How databases handle multiple users and survive crashes without losing data

6.1 ACID Properties

Atomicity (all-or-nothing), Consistency (valid state to valid state), Isolation (concurrent transactions don't interfere), Durability (committed data survives crashes). The bank transfer example that explains ACID perfectly. Why each property matters — and what happens when one is violated.

6.2 Transaction States & Schedules

Active, partially committed, committed, failed, aborted states. Serial vs non-serial schedules. Serialisability: conflict serialisability (precedence graph) and view serialisability. Why serial schedules are correct but slow — and how serialisability gives us the best of both.

6.3 Concurrency Control: Locking

Shared locks (read) vs exclusive locks (write). Two-Phase Locking (2PL): growing phase and shrinking phase. Strict 2PL. Deadlock: detection (wait-for graph) and prevention (wait-die, wound-wait). Starvation. Lock granularity: row-level vs table-level.

6.4 Concurrency Control: Timestamp & MVCC

Timestamp ordering protocol. Thomas' write rule. Multi-Version Concurrency Control (MVCC) — how PostgreSQL and MySQL InnoDB actually handle concurrency. Read snapshots without blocking writes. Why MVCC is dominant in modern databases.

6.5 Isolation Levels

Read Uncommitted, Read Committed, Repeatable Read, Serializable. Problems each level prevents/allows: dirty reads, non-repeatable reads, phantom reads. Default isolation levels in PostgreSQL (Read Committed) vs MySQL (Repeatable Read). Choosing the right level for your application.

6.6 Database Recovery

WAL (Write-Ahead Logging): log before write. Undo/redo recovery. Checkpoints: reducing recovery time. ARIES recovery algorithm (conceptual). How databases survive power failures, crashes, and disk corruption. Why durability works.

Placement relevance: "What are ACID properties?" is guaranteed in every DBMS interview. "What is a deadlock in databases?" "Explain 2PL." "What are isolation levels?" — these are top-10 DBMS interview questions. Concurrency control appears in both MCQs and descriptive answers at TCS, Infosys, and product companies.
07

Indexing, Storage & Query Processing

How databases store data physically and find it fast — the internals that interviewers love

7.1 File Organisation

Heap files (unordered), sequential files (sorted), hash files. Records, pages, blocks — how data lives on disk. Fixed-length vs variable-length records. Why disk I/O is the bottleneck — and why everything in DBMS internals is about reducing disk reads.

7.2 Indexing Fundamentals

Primary index (dense/sparse), secondary index, clustered vs non-clustered index. Index on primary key vs on non-key. Multi-level indexing. Why indexes speed up reads but slow down writes. "When should you NOT create an index?" — a common interview question.

7.3 B-Tree & B+ Tree Indexing

B-tree: balanced, self-adjusting, all nodes store data. B+ tree: only leaf nodes store data, leaf nodes form a linked list. Why B+ trees are preferred for databases (sequential access, range queries). Order, height calculation, search/insert/delete operations. How MySQL InnoDB and PostgreSQL use B+ trees.

7.4 Hash Indexing

Static hashing: hash function maps key to bucket. Overflow handling: chaining, open addressing. Dynamic hashing: extendible hashing, linear hashing. When hash indexes beat B+ trees (exact-match lookups) and when they don't (range queries). Hash indexes in PostgreSQL.

7.5 Composite & Covering Indexes

Composite index on (col1, col2, col3): leftmost prefix rule — index works for queries on (col1), (col1, col2), (col1, col2, col3) but NOT (col2, col3). Covering index: all queried columns are in the index — no table lookup needed. Index design for query patterns.

7.6 Query Processing & Optimisation

Query processing stages: parsing → translation → optimisation → evaluation. Cost-based optimisation: estimating I/O cost. Join algorithms: nested loop, sort-merge, hash join. EXPLAIN plan reading: what sequential scan, index scan, bitmap scan mean. Why index selection is the #1 performance decision.

Placement relevance: "What is a B+ tree and why is it used in databases?" is a top-5 DBMS interview question. Clustered vs non-clustered index, composite index leftmost prefix rule, and "why is this query slow?" are asked at every product company. Understanding indexing is what separates junior developers from senior developers.
08

NoSQL, Modern Databases & Database Security

Beyond relational — document stores, key-value, CAP theorem, and database security

8.1 NoSQL Database Types

Document stores (MongoDB): JSON-like documents, schema flexibility. Key-value stores (Redis): fastest lookups, caching. Column-family (Cassandra): wide columns, write-optimised. Graph databases (Neo4j): relationships as first-class citizens. When to use each type — the decision framework.

8.2 CAP Theorem & ACID vs BASE

CAP: Consistency, Availability, Partition tolerance — pick two. CP systems (consistent under partition — MongoDB). AP systems (available under partition — Cassandra). ACID (relational) vs BASE (Basically Available, Soft state, Eventually consistent — NoSQL). The fundamental trade-off in distributed databases.

8.3 Sharding, Partitioning & Replication

Horizontal partitioning (sharding): splitting data across servers by key range or hash. Vertical partitioning: splitting columns. Replication: master-slave, master-master. Read replicas for scaling reads. Consistency challenges with replication. How Instagram, Twitter, and Uber scale their databases.

8.4 Modern RDBMS: PostgreSQL & MySQL

PostgreSQL: MVCC, advanced data types (JSON, arrays, hstore), full-text search, window functions, CTEs. MySQL/InnoDB: most popular web database, MVCC, replication. Key differences between PostgreSQL and MySQL. Which companies use which — and why it matters for your resume.

8.5 Database Security

SQL injection: how it works ('; DROP TABLE users;--), parameterised queries as prevention. Access control: GRANT/REVOKE, role-based access. Encryption: at-rest (TDE) and in-transit (TLS). Data masking for sensitive information. Audit logging. Why every developer must understand SQL injection — it's the #1 web vulnerability.

8.6 ORM Concepts & Database in Application Architecture

Object-Relational Mapping: what Hibernate (Java), SQLAlchemy (Python), Sequelize (Node.js) do. N+1 query problem and how to avoid it. Connection pooling. Database migrations. How databases fit into web application architecture (MVC pattern). When to use raw SQL vs ORM.

Placement relevance: "What is the CAP theorem?" "SQL vs NoSQL — when to use which?" "What is SQL injection and how do you prevent it?" — these are standard product company interview questions. Sharding and replication are asked in system design rounds at Amazon, Flipkart, and Google. MongoDB is tested at startups and full-stack roles. These modern topics differentiate candidates who studied from a 2010 textbook from those with current knowledge.
Hands-On Practice

What Students DO During This Module

50+ SQL Query Exercises

From basic SELECT to complex window functions — graded by difficulty, auto-evaluated on a live database.

Design an ER Diagram

Given a real-world scenario (e-commerce, hospital, library), design the complete ER diagram and convert to relational schema.

Normalise a Denormalised Table

Start with a messy table full of redundancy. Identify FDs, find candidate keys, decompose to 3NF/BCNF step by step.

Query Optimisation Lab

Given slow queries, use EXPLAIN to diagnose, add indexes, rewrite queries, and measure the improvement.

Mini Database Project

Build a small application database: schema design, table creation, sample data, complex queries, views, and stored procedures.

SQL Injection Lab

Demonstrate SQL injection on a vulnerable form, then fix it with parameterised queries. Understand the attack to prevent it.

How We Deliver

Theory + Live SQL Practice + Assessments

Live Instructor Sessions

Trainers explain concepts with real database examples — not slides with bullet points. Every theory session includes a live SQL demo on a real database.

SQL Practice Platform

Students write SQL queries on our platform against live databases. Auto-evaluated: your query either returns the correct result or it doesn't. No partial credit — just like placement rounds.

Weekly Assessments

MCQs on DBMS theory (normalisation, transactions, indexing) + timed SQL query challenges. Auto-evaluated with topic-wise analytics.

Progress Analytics

Student-wise dashboards showing: SQL query accuracy, theory concept mastery, weak topics. TPOs see batch-level DBMS readiness.

Why DBMS & SQL Matters for Placements

The Subject That Appears in EVERY Technical Placement Round

Every Company Tests DBMS

TCS NQT, Infosys SP, Wipro NLTH, Cognizant GenC, Accenture — every service company's technical MCQ section includes 5–10 DBMS questions. Product companies test SQL query writing in separate rounds. There is no placement test that skips DBMS

SQL Writing Is Tested Separately

Many companies (Amazon, Goldman Sachs, Flipkart, analytics firms) have dedicated SQL rounds where you write queries on a live database. Students who can write JOINs, window functions, and subqueries fluently pass. Students who can only write SELECT * FROM fail.

Every Backend Role Needs DBMS

Full Stack, Backend Developer, Data Engineer, Data Analyst, DevOps — every technical role interacts with databases daily. DBMS isn't just an interview topic — it's a daily work skill. Students who understand indexing, query optimisation, and transactions write better applications.

System Design Requires Database Knowledge

Product company system design rounds ask: "Which database would you use? SQL or NoSQL? How would you shard this? What indexes would you create?" DBMS knowledge is the foundation of system design answers — without it, system design rounds are impossible.