What is data redundancy?
Data redundancy is a situation where the same information is stored in a database in several places at once.
The main points
- Causes of redundancy
- Repeating data across different tables unnecessarily.
- The database not being normalized.
- Problems redundancy causes
- Update errors: if data changes in one place but not the others, an inconsistency shows up.
- Wasted storage: duplicate records take up extra space.
- Harder maintenance: it's harder to manage, search, and analyze the information.
- Example
- The
Employeestable has aDepartmentNamefield, and a separateDepartmentstable also storesDepartmentName. - If a department's name changes, it has to be changed in two places, which risks errors.
Put simply, redundancy is unnecessary repetition of data, which creates problems with consistency and how efficiently the database works.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.