Anomalies in Relational Model

Last Updated : 18 Apr, 2026

Anomalies in DBMS are caused by poor management of storing everything in the flat database, lack of normalization, data redundancy, and improper use of primary or foreign keys. These issues result in inconsistencies during insert, update, or delete operations, leading to data integrity problems.

anomalies_in_dbms
Anomalies in DBMS

1. Insertion Anomaly

An insertion anomaly occurs when it is not possible to insert data into a database because some required information is missing or incomplete.

Example:

If a database requires every record to have a primary key, and no value is provided for that key, the record cannot be inserted into the table.

2. Deletion Anomaly

A deletion anomaly occurs when deleting a record unintentionally results in the loss of other important data.

Example:

If a database contains information about customers and their orders, deleting a customer record may also delete all the orders associated with that customer, leading to loss of valuable information.

3. Update Anomaly

An update anomaly occurs when modifying data in a database leads to inconsistencies because the same data is stored in multiple places.

Example:

If a database contains employee salary information in multiple records, and the salary is updated in one record but not in others, it may result in incorrect calculations and reporting.

Note: These anomalies can be removed with the process of Normalization, which generally splits the database which results in reducing the anomalies in the database.

Example:

STUDENT Table:

STUD_NOSTUD_NAMESTUD_PHONESTUD_STATESTUD-COUNTRYSTUD_AGE
1John2139716271Los AngelesCalifornia20
2Robert7139898291HoustonTexas19
3Jack6027898291PhoenixArizona18
4David2069816543SeattleWashington21

STUDENT_COURSE:

STUD_NOCOURSE_NOCOURSE_NAME
1C1DBMS
2C2Computer Networks
1C2Computer Networks

Note: Deleting the record would violate the foreign key constraint, which ensures data consistency between the two tables.

Removal of Anomalies

Anomalies in DBMS are removed using normalization, which organizes data into well-structured tables to reduce redundancy and maintain data integrity.

According to E. F. Codd, normalization:

  • Eliminates repeated data
  • Removes insertion, deletion, and update anomalies
  • Establishes proper relationships between tables

Note: After normalization, the database becomes more structured, reducing the likelihood of insertion, update and deletion anomalies.

Comment

Explore