Description of normalization
24 Sep 2021Normalization:
- The process of organizing data in a database.
- Creating tables and establishing relationships between those tables according to rules designed both to protect the data
- Make the database more flexible by eliminating redundancy and inconsistent dependency.
- Redundant data -> wastes disk space and creates maintenance problems.
- Problem of redundancy : If data that exists in more than one place must be changed, the data must be changed in exactly the same way in all locations.
- Inconsistency Dependancy: can make data difficult to access because the path to find the data may be missing or broken.
Rules of Normalization
1NF
- Eliminate repeating groups in individual tables.
- Create a separate table for each set of related data.
- Identify each set of related data with a primary key.
2NF
- Create separate tables for sets of values that apply to multiple records.
- Relate these tables with a foreign key.
3NF
- Eliminate fields that do not depend on the key.