Skip to content
We areTOP 1%

What is normalization, and which anomalies does it prevent?

EasyConceptNormalization
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

Normalization is the process of splitting a table into smaller, well-structured tables so that each fact is stored in exactly one place. It removes redundancy (repeated data) and the anomalies that redundancy causes.

  • Update anomaly: a fact stored in many rows must be changed in all of them; missing one leaves contradictory data.
  • Insert anomaly: a fact cannot be recorded without unrelated data, such as a new course that has no students yet.
  • Delete anomaly: deleting one fact accidentally deletes another.
  • The cost of normalization is that some queries need joins.

Example: enrolment(roll, name, course, teacher)

roll | name | course | teacher
1    | Asha | DBMS   | Rao
2    | Ravi | DBMS   | Rao
2    | Ravi | OS     | Iyer

If Rao is replaced, two rows must change (update anomaly). A new course with no students cannot be added (insert anomaly). If Ravi drops OS, the fact that Iyer teaches OS is lost (delete anomaly). Splitting the data into students(roll, name), courses(course, teacher) and enrolment(roll, course) removes all three.

More in Normalization

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account