The Wayback Machine - https://web.archive.org/web/20241007041103/https://www.geeksforgeeks.org/the-problem-of-redundancy-in-database/
Open In App

The Problem of Redundancy in Database

Last Updated : 16 Nov, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Redundancy means having multiple copies of the same data in the database. This problem arises when a database is not normalized. Suppose a table of student details attributes is: student ID, student name, college name, college rank, and course opted.

Student_ID     Name             Contact              College          Course         Rank         
100 Himanshu 7300934851 GEU B.Tech 1
101 Ankit 7900734858 GEU B.Tech 1
102 Ayush 7300936759 GEU B.Tech 1
103 Ravi 7300901556 GEU B.Tech 1

It can be observed that values of attribute college name, college rank, and course are being repeated which can lead to problems. Problems caused due to redundancy are:

Insertion Anomaly

If a student detail has to be inserted whose course is not being decided yet then insertion will not be possible till the time course is decided for the student. 

Student_ID         Name         Contact        College       Course       Rank     
100 Himanshu 7300934851 GEU   1

This problem happens when the insertion of a data record is not possible without adding some additional unrelated data to the record. 

Deletion Anomaly

If the details of students in this table are deleted then the details of the college will also get deleted which should not occur by common sense. This anomaly happens when the deletion of a data record results in losing some unrelated information that was stored as part of the record that was deleted from a table.  

It is not possible to delete some information without losing some other information in the table as well.

Updation Anomaly

Suppose the rank of the college changes then changes will have to be all over the database which will be time-consuming and computationally costly.

Student_ID Name Contact College Course Rank
100 Himanshu 7300934851 GEU B.Tech 1
101 Ankit 7900734858 GEU B.Tech 1
102 Ayush 7300936759 GEU B.Tech 1
103 Ravi 7300901556 GEU B.Tech 1

All places should be updated, If updation does not occur at all places then the database will be in an inconsistent state. 

Redundancy in a database occurs when the same data is stored in multiple places. Redundancy can cause various problems such as data inconsistencies, higher storage requirements, and slower data retrieval.

Problems Caused Due to Redundancy

  • Data Inconsistency: Redundancy can lead to data inconsistencies, where the same data is stored in multiple locations, and changes to one copy of the data are not reflected in the other copies. This can result in incorrect data being used in decision-making processes and can lead to errors and inconsistencies in the data.
  • Storage Requirements: Redundancy increases the storage requirements of a database. If the same data is stored in multiple places, more storage space is required to store the data. This can lead to higher costs and slower data retrieval.
  • Update Anomalies: Redundancy can lead to update anomalies, where changes made to one copy of the data are not reflected in the other copies. This can result in incorrect data being used in decision-making processes and can lead to errors and inconsistencies in the data.
  • Performance Issues: Redundancy can also lead to performance issues, as the database must spend more time updating multiple copies of the same data. This can lead to slower data retrieval and slower overall performance of the database.
  • Security Issues: Redundancy can also create security issues, as multiple copies of the same data can be accessed and manipulated by unauthorized users. This can lead to data breaches and compromise the confidentiality, integrity, and availability of the data.
  • Maintenance Complexity: Redundancy can increase the complexity of database maintenance, as multiple copies of the same data must be updated and synchronized. This can make it more difficult to troubleshoot and resolve issues and can require more time and resources to maintain the database.
  • Data Duplication: Redundancy can lead to data duplication, where the same data is stored in multiple locations, resulting in wasted storage space and increased maintenance complexity. This can also lead to confusion and errors, as different copies of the data may have different values or be out of sync.
  • Data Integrity: Redundancy can also compromise data integrity, as changes made to one copy of the data may not be reflected in the other copies. This can result in inconsistencies and errors and can make it difficult to ensure that the data is accurate and up-to-date.
  • Usability Issues: Redundancy can also create usability issues, as users may have difficulty accessing the correct version of the data or may be confused by inconsistencies and errors. This can lead to frustration and decreased productivity, as users spend more time searching for the correct data or correcting errors.

To prevent redundancy in a database, normalization techniques can be used. Normalization is the process of organizing data in a database to eliminate redundancy and improve data integrity. Normalization involves breaking down a larger table into smaller tables and establishing relationships between them. This reduces redundancy and makes the database more efficient and reliable. 

Advantages of Redundant Data

  • Enhanced Query Performance: By eliminating the need for intricate joins, redundancy helps expedite data retrieval.
  • Offline Access: In offline circumstances, redundant copies allow data access even in the absence of continuous connectivity.
  • Increased Availability: Redundancy helps to increase fault tolerance, which makes data accessible even in the event of server failures.

Disadvantages of Redundant Data

  • Increased storage requirements: Redundant data takes up additional storage space within the database, which can increase costs and slow down performance.
  • Inconsistency: If the same data is stored in multiple places within the database, there is a risk that updates or changes made to one copy of the data may not be reflected in other copies, leading to inconsistency and potentially incorrect results.
  • Difficulty in maintenance: With redundant data, it becomes more difficult to maintain the accuracy and consistency of the data. It requires more effort and resources to ensure that all copies of the data are updated correctly.
  • Increased risk of errors: When data is redundant, there is a greater risk of errors in the database. For example, if the same data is stored in multiple tables, there is a risk of inconsistencies between the tables.
  • Reduced flexibility: Redundancy can reduce the flexibility of the database. For example, if a change needs to be made to a particular piece of data, it may need to be updated in multiple places, which can be time-consuming and error-prone.

Conclusion

In databases, data redundancy is a prevalent issue. It can cause a number of problems , such as inconsistent data, wasted storage space, decreased database performance, and increased security risk.

The most effective technique to reduce redundancy is to normalize the database. The use of views materialized views, and foreign keys are additional techniques to reduce redundancy.

FAQs on Redundancy in Database

Q.1: What is the Redundancy Problem?

Answer: 

The redundancy Problem in the Database is simply due to the presence of multiple data or copied data in the database that may lead in increasing the size and complexity of the database.

Q.2: What are the problems caused due to the Redundancy?

Answer:

Some of the problems that are caused due to the redundancy in the database are:

  • Data Inconsistency
  • Storage Requirement
  • Update Anomalies
  • Security Issues
  • Maintenance Complexity

Q.3: How is data redundancy handled?

Answer: 

Data Redundancy is handled by simply a single form of data that is basically accessible by multiple users. Removing common data from multiple places helps in handling data redundancy.



Previous Article
Next Article

Similar Reads

Vertical Redundancy Check (VRC) or Parity Check
Vertical Redundancy Check is also known as Parity Check. In this method, a redundant bit also called parity bit is added to each data unit. This method includes even parity and odd parity. Even parity means the total number of 1s in data is to be even and odd parity means the total number of 1s in data is to be odd. Example - If the source wants to
3 min read
How DBMS Reduces Data Redundancy?
Answer: DBMS reduces data redundancy by using the techniques of normalization and the concept of primary and foreign keys. Database Management Systems (DBMS) play a crucial role in minimizing data redundancy, which optimizes storage, improves data integrity, and simplifies data management. Normalization TechniquesDBMS uses normalization to organize
1 min read
Longitudinal Redundancy Check (LRC)/2-D Parity Check
Longitudinal Redundancy Check (LRC) is also known as 2-D parity check. In this method, data which the user want to send is organised into tables of rows and columns. A block of bit is divided into table or matrix of rows and columns. In order to detect an error, a redundant bit is added to the whole block and this block is transmitted to receiver.
2 min read
Difference between Data Redundancy and Data Inconsistency
Introduction In database management, two common issues often encountered are Data Redundancy and Data Inconsistency. These terms refer to different challenges that arise when handling large datasets. A well-structured database design aims to minimize both of these issues to ensure data integrity, accuracy, and efficient storage. This article will e
3 min read
How to pre populate database in Android using SQLite Database
Introduction : Often, there is a need to initiate an Android app with an already existing database. This is called prepopulating a database. In this article, we will see how to pre-populate database in Android using SQLite Database. The database used in this example can be downloaded as Demo Database. To prepopulate a SQLite database in an Android
7 min read
Difference between Database Administrator and Database Architect
In the field of data management the position of a DBA and that of a Database Architect while sounding similar are in fact quite distinct. Although both jobs are crucial for maintaining the functionality and the protection of databases, both jobs engaged on various tasks connected with database management. A DBA is mainly involved in database admini
5 min read
Difference between Open Source Database and Commercial Database
Databases play a critical role in storing and managing structured data, with the help of a Database Management System (DBMS). They are broadly categorized into two types: open-source and commercial. Open-source databases, like MySQL and PostgreSQL, are freely available and allow customization, making them a popular choice for budget-conscious organ
6 min read
Difference between Database Administrator (DBA) and Database Engineer
Database Administrator is a user who is responsible for all duties related to the database like performance, optimization, backup, recovery, etc. Whereas the Data Engineer is the user who is responsible for developing the databases and he/she must ensure the proper functioning of the database. This article will provide an in-depth guide about the m
5 min read
Difference between Centralized Database and Distributed Database
As we know, databases are widely used for efficient storage, search, and other operations with data in the process of data management. Listening to the experience of using databases, two major categories are Centralized Databases and Distributed Databases. It is crucial to grasp the distinctions between these two types since every one of them posse
6 min read
Time Series Database vs Relational Database
Are databases slowing down your application's performance? Have you noticed that traditional relational database designs are struggling to keep up with the demands of modern applications? Over the years, new database architectures have emerged to not only boost scalability and performance but also to enhance developer productivity and simplify the
13 min read
Database Management Systems | Set 3
Following Questions have been asked in GATE 2012 exam. 1) Consider the following transactions with data items P and Q initialized to zero: T1: read (P) ; read (Q) ; if P = 0 then Q : = Q + 1 ; write (Q) ; T2: read (Q) ; read (P) ; if Q = 0 then P : = P + 1 ; write (P) ; Any non-serial interleaving of T1 and T2 for concurrent execution leads to (A)
3 min read
Database Management Systems | Set 4
Following Questions have been asked in GATE 2011 exam. 1. Consider a relational table with a single record for each registered student with the following attributes. 1. Registration_Number:< Unique registration number for each registered student 2. UID: Unique Identity number, unique at the national level for each citizen 3. BankAccount_Number:
4 min read
Database Management Systems | Set 5
Following Questions have been asked in GATE CS 2010 exam. 1) A relational schema for a train reservation database is given below. Passenger (pid, pname, age) Reservation (pid, class, tid) Table: Passenger pid pname age ----------------- 0 Sachin 65 1 Rahul 66 2 Sourav 67 3 Anil 69 Table : Reservation pid class tid --------------- 0 AC 8200 1 AC 820
4 min read
Database Management Systems | Set 6
Following questions have been asked in GATE 2009 CS exam. 1) Consider two transactions T1 and T2, and four schedules S1, S2, S3, S4 of T1 and T2 as given below: T1 = R1[X] W1[X] W1[Y] T2 = R2[X] R2[Y] W2[Y] S1 = R1[X] R2[X] R2[Y] W1[X] W1[Y] W2[Y] S2 = R1[X] R2[X] R2[Y] W1[X] W2[Y] W1[Y] S3 = R1[X] W1[X] R2[X] W1[Y] R2[Y] W2[Y] S1 = R1[X] R2[Y]R2[X
4 min read
Database Management Systems | Set 7
Following questions have been asked in GATE 2008 CS exam. 1) Let R and S be two relations with the following schema R (P,Q,R1,R2,R3) S (P,Q,S1,S2) Where {P, Q} is the key for both schemas. Which of the following queries are equivalent? (A) Only I and II (B) Only I and III (C) Only I, II and III (D) Only I, III and IV Answer (D) In I, Ps from natura
3 min read
Database Management Systems | Set 10
Following questions have been asked in GATE CS 2005 exam. 1) Let r be a relation instance with schema R = (A, B, C, D). We define r1 = 'select A,B,C from r' and r2 = 'select A, D from r'. Let s = r1 * r2 where * denotes natural join. Given that the decomposition of r into r1 and r2 is lossy, which one of the following is TRUE? (a) s is subset of r
3 min read
Database Management Systems | Set 8
Following questions have been asked in GATE 2005 CS exam. 1) Which one of the following statements about normal forms is FALSE? (a) BCNF is stricter than 3NF (b) Lossless, dependency-preserving decomposition into 3NF is always possible (c) Lossless, dependency-preserving decomposition into BCNF is always possible (d) Any relation with two attribute
3 min read
Database Management Systems | Set 9
Following questions have been asked in GATE 2006 CS exam. 1) Consider the following log sequence of two transactions on a bank account, with initial balance 12000, that transfer 2000 to a mortgage payment and then apply a 5% interest. 1. T1 start 2. T1 B old=12000 new=10000 3. T1 M old=0 new=2000 4. T1 commit 5. T2 start 6. T2 B old=10000 new=10500
4 min read
Database Management Systems | Set 11
Following questions have been asked in GATE CS 2007 exam. 1) Information about a collection of students is given by the relation studinfo(studId, name, sex). The relation enroll(studId, courseId) gives which student has enrolled for (or taken) that course(s). Assume that every course is taken by at least one male and at least one female student. Wh
5 min read
Database Objects in DBMS
A database object is any defined object in a database that is used to store or reference data.Anything which we make from create command is known as Database Object.It can be used to hold and manipulate the data.Some of the examples of database objects are : view, sequence, indexes, etc. Table - Basic unit of storage; composed rows and columns View
4 min read
Challenges of database security in DBMS
Seeing the vast increase in volume and speed of threats to databases and many information assets, research efforts need to be consider to the following issues such as data quality, intellectual property rights, and database survivability. Let's discuss them one by one. 1. Data quality - The database community basically needs techniques and some org
5 min read
SQL Trigger | Book Management Database
Prerequisite - SQL Trigger | Student Database For example, given Library Book Management database schema with Student database schema. In these databases, if any student borrows a book from library then the count of that specified book should be decremented. To do so, Suppose the schema with some data, mysql> select * from book_det; +-----+-----
2 min read
Advantages of Distributed database
Distributed databases basically provide us the advantages of distributed computing to the database management domain. Basically, we can define a Distributed database as a collection of multiple interrelated databases distributed over a computer network and a distributed database management system as a software system that basically manages a distri
4 min read
Federated database management system issues
What is a Federated Database Management System? A Federated Database Management System (FDBMS) is a type of distributed database management system that allows users to access and manipulate data stored in multiple databases. It is a system that integrates data from different sources, providing a single view of the data to users. This type of system
9 min read
Data Management issues in Mobile database
Data management technology that can support easy data access from and to mobile devices is among the main concerns in mobile information systems. Mobile computing may be considered a variation of distributed computing. The two scenarios in which mobile databases is distributed are: Among the wired components, the entire database is distributed, pos
7 min read
Perl | Database management using DBI
Prerequisites: Introduction to Perl Database Systems Creating database programs is one of the most common uses of Perl. Using Perl, we can create robust web applications along with a database to manage all the data. It provides excellent support for interfacing and a broad range of database formats. For connecting to and querying a database, Perl p
7 min read
Firebase RealTime Database with Operations in Android with Examples
Firebase Realtime Database is a Cloud hosted database, i.e. it runs on a cloud and access to the user is provided as a service. It stores data in JSON (Javascript Object Notation) format, a format to store or transport data. All the users connected to it can get access to the data at Real Time. Features of Firebase Realtime Database? Real Time: Due
6 min read
Significance of Database Design
A database refers to the collection of data (files and records) which is stored and can be manipulated using a software named Database Management Systems. In the previous days where no technical developments took place, data was stored in form of files. Due to its drawbacks of storage and manipulation, files were replaced by DBMS. Its accuracy of e
2 min read
Personnel involved in Database Management System
Many persons are involved in the design, use, and maintenance of a large database with a few hundred users. Here we will consider people who may be called "Actors on the Scene", whose jobs involve the day-to-day use of a large database. Database Administrators: Administrating the primary (database) and secondary (DBMS and related software) is the r
5 min read
MySQL | Database Files
Whenever MySQL database installation is done, all the database related data and metadata are stored in one folder. This is the actual database schema with some values in it. Let us explore more about it. The file extensions are as follows: .frm – This is the extension of file which contains the schema or definition of the table..myd – This is the e
5 min read
Article Tags :