Home

Why Databases Exist

Session 1: Start With Pain, Not Definitions

Goal: Understand why Excel fails before learning how databases win

Imagine This Scenario

"Our college stores all student data in Excel files.

One file for students.
One file for fees.
One file for exams.

It works... until it doesn't."

What Could Go Wrong?

Question 1

What if two students have the same name?

Question 2

What if a student changes their phone number?

Question 3

What if three teachers open the file at once?

Question 4

What if someone deletes a row accidentally?

The Disaster Scenario

Let's make this real. Two students named Rahul Sharma.

The Emergency Call

Teacher A updates the phone number for the wrong Rahul Sharma.

Now Rahul Sharma #2's parents can't be reached during a medical emergency.

Whose fault is this? The teacher? Excel? The system?

This Is Your "Database"

Name
Phone
Course
FeePaid
Rahul Sharma
9876543210
CS101
Yes
Rahul Sharma
8765432109
CS101
Yes
Priya Patel
twenty
CS101, CS102
Yes
Amit Kumar
CS102
No

Yellow = Duplication | Red = Invalid | Gray = Missing

Why Excel Fails

Duplication

Same student repeated in multiple rows, multiple files

Inconsistency

Different phone numbers for the same person across sheets

No Validation

Age = "twenty", Fee = "paid" (text vs. numbers)

No Identity

No reliable way to say "this is THE Rahul Sharma"

No Relationships

Can't link real-world connections: students ↔ courses ↔ fees

"Excel stores values.
It does not understand meaning."

This is the fundamental difference.
Excel is a calculator. A database is an ontology.

Why Databases Were Invented

When systems grew larger — banks, airlines, universities — files broke.

Databases were invented to protect data from humans

😅

Humans make
mistakes

🛡️

Databases
enforce rules

The Bridge to Solution

We need a system that knows Rahul is Rahul, even when:

Critical Question

What kind of system invents rules that even administrators must follow?

The Answer

"A database is a rule engine
disguised as storage."

It doesn't just store data.
It stores truth about what data means.

The Fundamental Difference

Excel Says...

"I'll save whatever you type"

"Duplicate him 5 times, I don't care"

"Delete that row? Okay, gone forever"

Database Says...

"You must tell me what Rahul IS before I'll store him"

"Rahul exists once. Everything else connects to him"

"You can't delete Rahul while he still owes fees"

Excel stores values. Databases store truth.

What You Should Feel Now

😰

Anxiety

Excel is fragile. Data is dangerous without rules.

🤔

Curiosity

How do we build systems that protect us from ourselves?

Next Session: What Is a Relational Database?

Slide 1 / 12