In this article we give the information about normalization in a database design technique that organizes tables in a manner that reduce redundancy (useless) and dependency of data.

Normalization in Database:

  • Normalization is a database design technique that organizes tables in a manner that reduce redundancy (useless) and dependency of data.
  • To avoid insertion, update & deletion anomaly.
  • Normalization divides larger tables into smaller table and link them  using relationships. (Primary key and Foreign key)

Anomaly (Insertion, Update, Delete)

Anomaly: Something that is not according to standard or normal

Table Name: student

Roll_No Name Address Dept
1 Rahul Pune BCA
1 Rahul Pune BA
2 Pranav Satara MBA
3 Geeta Sangli BCA
3 Geeta Sangli BA

Insert:

Insert into student (Roll_No, Name, Addrress) values (4, ‘Amol’, ‘Satara’);

Result: student does not allow null values

Update:

Update student set dept=’BCA’ where Roll_No=1;

Result: Update two rows

Delete:

Delete from student where Roll_No=1;

Result: Delete two rows

Normalization Types:

Here are most commonly used normal forms:

  1. First Normal Form (1NF)
  2. Second Normal Form (2NF)
  3. Third Normal Form (3 NF)
  4. Boyce & Codd Normal Form (BCNF)
  5. Forth Normal Form (4NF)
  6. Fifth Normal Form (5NF)

First Normal Form (1NF)

As per the rule of first normal form,

  • An attributes (Column) of a table cannot hold multiple values.
  • It should hold only atomic (forming a single unit) values.
  • Each record needs to be unique.

Atomic value: An atomic value is a value that cannot be divided.

Table Name: student

Roll_No Name Mobile_No Dept
1 Rahul 9986532147 BCA
2 Amol 9865326589, 9965832658 BA
3 Pranav 9789563211, 9856231458 MBA
4 Geeta 9963524789 BCA
5 Jaya 9856231458 BA

Above table, column mobile number there are two mobile numbers in rows two and three so there is not an atomic value.

After First Normalization

Table Name: student

Roll_No Name Mobile_No Dept
1 Rahul 9986532147 BCA
2 Amol 9865326589 BA
2 Amol 9965832658 BA
3 Pranav 9789563211 MBA
3 Pranav 9856231458 MBA
4 Geeta 9963524789 BCA
5 Jaya 9856231458 BA

 

Some More: 

POP- Introduction to Programming Using ‘C’

DS – Data structure Using C

OOP – Object Oriented Programming 

Java Programming

DBMS – Database Management System

RDBMS – Relational Database Management System

Join Now: Data Warehousing and Data Mining 

Leave a Reply

Your email address will not be published. Required fields are marked *