NORMALIZATION IN RDBMS
NORMALIZATION
Normalization is a process
of analysis and organizing data in the database. In this process, reduce the
redundancy from relations. Normalization is used to eliminate undesirable features
like create, insertion, update, and deletion. It follows some protocols to
divide the larger table into the smaller table.
Without
Normalization
- Data take extra memory in the database
- Difficulty in updating and organizing the data
- Data redundancy problem
TYPES
OF NORMALIZATION
- First Normal form
- Second Normal form
- Third Normal form
- BCNF
- Fourth Normal form
FIRST NORMAL FORM
When a table divided
into row and column form that break down a table with all repeating group of
data eliminated. Example:-
Project
number |
Project
name |
Employee
number |
Employee
name |
Rate
category |
P001 |
Green |
E001 |
Shyam |
A |
P001 |
Blue |
E002 |
Ram |
B |
P001 |
Green |
E006 |
Satish |
C |
P002 |
Yellow |
E001 |
Shyam |
A |
P002 |
Yellow |
E007 |
Chavi |
B |
In above table few problems:
Every field contains a duplicate record. It can resolve by normalization.
A table is in 1st normal form if:
- The entire column name in a table should have unique.
- Data
value in a column should be the same type.
- It
should contain a single value in the attribute or column.
- Order of stored value in a table, does not matter.
- All attributes are dependent on a primary key.
Comments
Post a Comment