Database Normalization
database
Normalization
- process of organizing a database to reduce
redundancy problem
and improve data integrity
Functional Dependency
- 하나의 atrribute가 다른 attribute의 value를 결정하는지 여부를 판단
- well formed인지 판별할 수 있는 기준
- A(
Determinant
) -> B(dependent
): A가 결정되면 B도 결정된다면 B는 A에 함수적 종속 Every determinant must be a Candidate Key
Normalization
Process
- BCFNF:
Boyce-Codd
Normal Form =>Each relation has only one theme
- Identify all the
Candidate Keys
. - Identify all the
Functional Dependencies
. - Examine the
determinants
of the functional dependencies- place the columns of the functional dependency in a new relation of their own
- make the determinant of the functianl dependency the primary key of the new relation
- Leabe a copy of the determinant as a foreign key in the original relation
- create a
referential integrity
constraint between the original and new relation
- Repeat the process until every determinant of every relation is a candidate key