2.1 DBMS Introduction

What it is:

A DBMS (Database Management System) is software that lets you create, store, retrieve, update, and manage data in a structured way, without directly dealing with how data is physically stored on disk.

Before DBMS, data was stored in flat files (like plain text or Excel files) managed by the file system. This caused a lot of problems.

Why DBMS over File System:

Problem in File System How DBMS Solves It
Data redundancy (same data repeated in multiple files) Centralized storage, minimal duplication
No data integrity / inconsistency Constraints (PK, FK, CHECK) enforce rules
Difficult concurrent access DBMS handles concurrency control (locks)
No security User-level access control (DCL commands)
No backup/recovery Built-in backup & recovery mechanisms
No standard query language SQL provides a uniform way to access data

Key characteristics of a DBMS:

Examples of DBMS software:

How to explain this to an interviewer (short version):

"A DBMS is software that manages data efficiently — it provides structured storage, ensures data integrity through constraints, supports concurrent multi-user access, and gives us SQL as a standard way to interact with data. It solves major problems of traditional file systems like redundancy, inconsistency, and lack of security."

Simple example: Imagine a college storing student records in separate Excel sheets for admissions, exams, and library — same student name/roll number typed in each file. If one file has a typo, data becomes inconsistent. A DBMS instead stores this in linked, structured tables (Students, Exams, Library) with a single source of truth (e.g., roll_no as a common key).


2.2 Database Terminologies

Before diving into models and SQL, you need to be fluent in the core vocabulary. Interviewers often test these as quick-fire questions.