Anomalies in a database are data inconsistencies, errors or unexpected behaviors that happen during insertion, update or delete operations.
They are usually caused by poor database design, high data redundancy or a lack of normalization.
There are three major anomalies:
Insertion anomaly: We cannot add new data to a table because it requires other unrelated or missing information. Trying to add a new course (
Power BI) to aStudent_Coursetable, the database rejects or forces you to fill in student information that does not exist yet because a student ID is tied to the primary key.Update anomaly: Data is duplicated across multiple rows. If we change it in one row and forget to change it in others, the database becomes inconsistent. Example: If a course instructor's name is stored in 50 different student enrollment rows and you update it in only 49 rows, the database will show two different instructors for the same course
Deletion anomaly: Deleting one record accidentally removes other useful information. Deleting the last student enrolled in a specific class removes that student and also deletes all records and history of the course itself from the table
Loading…