Database Management System

Keys, normalization and transactions: the database theory round.

About Database Management System

A database management system (DBMS) stores data so many users can read and change it safely at the same time. MySQL, PostgreSQL and Oracle are relational DBMSs: they keep data in tables linked by keys.

This subject is the theory behind them: ER modelling, keys, normalization, transactions and ACID, concurrency control and indexing.

Why it matters for placements

DBMS is the third core subject asked to freshers. Normalization, ACID and indexing questions appear in nearly every service-company technical round.

What you'll learn

8 topics · 23 lessons, each with practice

  • Design a schema from requirements with an ER diagram
  • Identify candidate, primary and foreign keys
  • Normalize tables to 1NF, 2NF, 3NF and BCNF
  • Explain ACID, isolation levels and how locking prevents anomalies
  • Explain how B+ tree indexes speed up queries

Foundation Foundation

Take Foundation test

Required. Enough to clear online assessments and service-company interviews.

Introduction

Not started

Every app you build will keep data somewhere, and the choice of how shapes everything after it. This topic explains why we use a DBMS instead of plain files and how a database separates what users see from how data sits on disk.

Keys

Not started

A table is only useful if you can point at exactly one row and link rows across tables. Keys are how a database guarantees uniqueness and connects data, and almost every DBMS interview starts with a question about them.

ER Model

Not started

Jumping straight to CREATE TABLE leads to missing links and messy schemas. The ER model lets you sketch entities, attributes and relationships on paper first, and then convert that picture into tables with fixed rules.

Transactions & ACID

Not started

Real operations like a money transfer are several steps that must succeed or fail together, even when the server crashes halfway. Transactions and the ACID properties are how databases make that promise, and every backend interview expects you to explain them.

Interview Ready Interview Ready

Take Interview Ready test

Recommended. Enough for technical rounds at good product companies.

Normalization

Not started

A badly designed table stores the same fact many times, and then inserts, updates and deletes start corrupting data. Normalization is the step-by-step method for splitting tables so each fact lives in one place, and normal-form questions are a staple of DBMS rounds.

Concurrency Control

Not started

Databases serve many users at once, and without control two transactions can overwrite or misread each other's data. This topic covers the problems that arise, the isolation levels that trade safety for speed, and the locking that makes it work.

Indexing

Not started

Without an index, finding one row means scanning the whole table from disk. Indexing explains how databases find rows in a few disk reads and what that speed costs on writes.

Advanced Advanced

Take Advanced test

Optional. For top product companies. Never counted against your readiness.

NoSQL & CAP

Not started

Not every system fits neatly into tables with fixed schemas on one big server. This topic covers the main NoSQL database types and the CAP theorem, which explains the trade-off every distributed database has to make.