CS Atlas GATE 2027
DBMS course
0 / 119 complete

DBMS/Phase 0 · Foundations

Lesson 0.1.1 · Item 1 of 119

Data vs information; plain files and their problems

Read at your own pace. Try the questions before opening the answers.

On this page

1 · The Hook

A college keeps its student records the old way. The exam cell has a spreadsheet of students. The library has its own file. The hostel office has a third. Each office typed in Asha's name, roll number and phone number separately.

Asha changes her phone number and tells the exam cell. A month later the library tries to call her about an overdue book and reaches a stranger. Nobody did anything "wrong", yet the college now holds two different phone numbers for the same person. This lesson explains why keeping data in separate files breaks in exactly this way, and what a better system must fix.

2 · Predict First

Three offices each keep their own copy of every student's phone number. A student updates her number at one office only. How many of the college's copies of her number are now wrong, and can the college tell which one is right?

Make a guess in your head. The answer opens Section 3.

3 · Core Concept

Predict First — the answer

Two copies are wrong, and the college cannot tell which copy is right by looking at the files alone. Three copies of one fact means three places to update. Miss any of them and the copies disagree. This disagreement is called inconsistency, and it comes directly from storing the same fact more than once (redundancy).

Data vs information

Data is raw recorded facts: Asha, 9.1, C1. On its own a value means little.

Information is data processed into something meaningful: "Asha has the highest CGPA in the CS department." Information answers a question; data is what you compute it from.

A database is a collection of related data about one organisation (a college, a bank, a railway), stored so that many questions can be answered from it.

The file-processing approach

Before database systems, each department wrote its own programs that kept data in its own files. This is a file-processing system. It works while the organisation is small. As it grows, the same problems appear every time:

ProblemWhat goes wrongCollege example
RedundancyThe same fact is stored in many files.Asha's phone number in 3 files.
InconsistencyCopies of one fact disagree.Exam cell and library hold different numbers.
Difficult accessEvery new question needs a new program."Students with CGPA > 8 who owe library fines" needs code that reads two file formats.
IsolationData is scattered in different files and formats.Spreadsheet vs text file vs paper register.
Integrity problemsRules (such as "CGPA is between 0 and 10") live inside many programs; adding or changing a rule means editing all of them.One program checks the CGPA range, another forgets.
Atomicity problemsA task made of several steps can stop halfway.Fee moves from "pending" to "paid": the program crashes after removing it from pending but before adding it to paid. The money vanishes from the records.
Concurrent-access anomaliesTwo users change the same data at once and one change is lost.Two clerks both read "seats left = 1" and both allot the seat.
Security problemsHard to let each user see only what they should.A hostel clerk can open the exam marks file.

Atomic means "all or nothing": a multi-step task should either finish completely or leave no trace. Concurrent means "at the same time".

What a better system must do

Store each fact once (or keep copies under control), answer new questions without new programs, enforce rules in one place, make multi-step tasks all-or-nothing, let many users work at once safely, and control who sees what. Software that does this is a database management system, the subject of the next lesson.

4 · Visual

Separate files per office: one update reached only one copy.

File-processing system                 Database approach
----------------------                 -----------------
Exam program  --> exam.xlsx            Exam program    \
Library prog  --> library.txt          Library program  >--> DBMS --> one database
Hostel prog   --> hostel.csv           Hostel program  /
(each program owns its own file)       (programs ask the DBMS; data stored once)

Left: every program owns its data. Right: programs share one database through one manager.

5 · Worked Examples

Example 1 Easy

Classify each as data or information: (i) C2, (ii) "3 students failed DBMS this semester", (iii) 7.8, (iv) "The average CGPA of EE students is 7.8".

Solution

(i) data, (iii) data: raw values. (ii) and (iv) are information: each is computed from many raw values and answers a question.

Example 2 Medium

A bank keeps savings accounts in one file and loans in another, each with the customer's address. A customer moves house and the savings file is updated. Name the two problems this shows.

Solution

Redundancy (address stored twice) and, after the update, inconsistency (two different addresses for one customer).

Example 3 GATE

Money is transferred: ₹500 is subtracted from account X, then the system crashes before ₹500 is added to account Y. Which file-processing problem is this, and what property would have prevented it?

Solution

An atomicity problem. The transfer is one logical task made of two steps; it must be all or nothing. With atomicity, the crash would undo the subtraction, so no money disappears.

6 · GATE Traps

  • Redundancy and inconsistency are different: redundancy is storing a fact twice; inconsistency is the copies disagreeing. Redundancy makes inconsistency possible; it does not guarantee it.
  • An atomicity problem involves one task stopping halfway (often a crash). A concurrency problem involves two or more users interfering. Read who is acting.
  • "Data isolation" means data scattered across files and formats, not "data kept private". Privacy is the security problem.

7 · Memory Hook

Eight problems, one sentence: Really Incorrect Data Is In All College Spreadsheets: Redundancy, Inconsistency, Difficult access, Isolation, Integrity, Atomicity, Concurrency, Security.

8 · Connect the Dots

This lesson listed what goes wrong when every program owns its own file. Next lesson: the software that fixes these eight problems, the DBMS, what exactly it does, and the people who use it.

9 · Self-Test

GATE format. Try every question before opening the vault.

Q1 · MCQ · 1 mark(s) — Data vs information

Which of these is information rather than data?

  1. (A) C1
  2. (B) The CS department has the highest average CGPA
  3. (C) 9.1
  4. (D) Asha

Q2 · MCQ · 1 mark(s) — Problems

Two clerks read "1 seat left" at the same moment and both confirm a booking. Which problem is this?

  1. (A) Redundancy
  2. (B) Data isolation
  3. (C) Atomicity problem
  4. (D) Concurrent-access anomaly

Q3 · MSQ · 2 mark(s) — Problems

A college stores the same student's address in three different files. Which problems can result directly from this?

  1. (A) Inconsistency
  2. (B) Security problems
  3. (C) Redundancy
  4. (D) Wasted storage

Q4 · MCQ · 1 mark(s) — Problems

A new rule says CGPA must be between 0 and 10. In a file-processing system, why is this hard to enforce?

  1. (A) The rule must be added to every program that writes CGPA
  2. (B) Files cannot store decimal numbers
  3. (C) The rule makes queries slower
  4. (D) Files cannot be shared between programs

Q5 · NAT · 1 mark(s) — Counting copies

A student's phone number is stored in 5 separate office files. The student updates it at 2 offices. How many copies are now out of date?

Numerical answer: ________

10 · Rule Card

  • Data = raw facts; information = processed data that answers a question.
  • File-processing system: each program owns its own files.
  • Its problems (RIDIIACS): Redundancy, Inconsistency, Difficult access, Isolation, Integrity, Atomicity, Concurrency, Security.
  • Redundancy = same fact stored more than once; inconsistency = copies disagree.
  • Atomic = all or nothing; concurrent = at the same time.

11 · Concept Ledger

Unlocked in this lesson. From here on, these terms may be used.

datainformationdatabasefile-processing systemredundancyinconsistencydata isolationintegrity ruleatomicity (all or nothing)concurrent accesssecurity

12 · Answer Vault

Reveal answers when you’re ready

Self-Test

Q1 Answer: (B) · 1 mark(s)

It is the result of processing many values to answer a question.

  • (A) is wrong: A raw value.
  • (C) is wrong: A raw value.
  • (D) is wrong: A raw value.

Re-read: Lesson 0.1.1 — Data vs information; plain files and their problems

Q2 Answer: (D) · 1 mark(s)

Two users acting at the same time on the same data, and one of their effects is wrong.

  • (A) is wrong: Nothing is stored twice here.
  • (B) is wrong: Isolation is data scattered across formats.
  • (C) is wrong: Atomicity is one task stopping halfway.

Re-read: Lesson 0.1.1 — Data vs information; plain files and their problems

Q3 Answer: (A) (C) (D) · 2 mark(s)

Storing the address three times is redundancy; it wastes space and lets the copies disagree (inconsistency). Security problems are about access control, not about copies.

  • (B) is wrong: Copies do not by themselves change who may read the data.

Re-read: Lesson 0.1.1 — Data vs information; plain files and their problems

Q4 Answer: (A) · 1 mark(s)

In a file-processing system, rules live inside programs, so every program that writes the value must be changed. This is the integrity problem.

  • (B) is wrong: Files store decimals fine.
  • (C) is wrong: Speed is not the issue.
  • (D) is wrong: Not the reason a rule is hard to enforce.

Re-read: Lesson 0.1.1 — Data vs information; plain files and their problems

Q5 Answer: 3 · 1 mark(s)

5 − 2 = 3 copies still hold the old number.

Re-read: Lesson 0.1.1 — Data vs information; plain files and their problems

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.