Q.Compared to a file system, how does a database management system avoid redundancy in data through a database?
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →In a file-processing system each application (library, exams, fees…) maintains its own files, so the same student's details are stored again and again — redundancy, wasted space, and eventual inconsistency. A DBMS stores every fact once in a central, shared database; other tables refer to that fact through a primary-key/foreign-key link instead of copying it, and key constraints stop duplicates from being entered at all.
How redundancy arises in a file system
Picture a school before databases. The library software has library.dat with (RollNo, Name, Address, BooksIssued). The examination software has exam.dat with (RollNo, Name, Address, Marks). The fee software has fees.dat with (RollNo, Name, Address, FeePaid). The name and address of every student are stored three times — once per application file. That is data redundancy, and it brings two evils: wasted storage, and inconsistency when the student's address is updated in one file but not the others.
What a DBMS does differently
1. One central, shared database. All applications (library, exams, fees) talk to the same database through the DBMS instead of each owning private files. The student's name and address are stored once, in one STUDENT relation, and every application reads that single copy.
2. Related data is linked, not copied. The relational design splits data into separate relations and connects them with keys. The library module doesn't store the student's address — it stores only the student's RollNo (a foreign key) and looks up the rest:
CREATE TABLE STUDENT (
RollNo INT PRIMARY KEY,
Name VARCHAR(30) NOT NULL,
Address VARCHAR(60)
);
CREATE TABLE BOOK_ISSUE (
IssueID INT PRIMARY KEY,
RollNo INT, -- just a reference, not a copy of the student
BookNo INT,
FOREIGN KEY (RollNo) REFERENCES STUDENT(RollNo)
);
-- Any application reconstructs the "combined file" on demand:
SELECT S.Name, S.Address, B.BookNo
FROM STUDENT S JOIN BOOK_ISSUE B ON S.RollNo = B.RollNo;
| Name | Address | BookNo |
|---|---|---|
| Asha | 12, MG Road | 501 |
| Asha | 12, MG Road | 517 |
The join displays the address next to each issued book, but it is still stored only once in STUDENT. Key line: FOREIGN KEY (RollNo) REFERENCES STUDENT(RollNo) — a 4-byte reference replaces a full duplicated record, and it can never point to a non-existent student. …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.