1ST Normalization - Mcan102
1ST Normalization - Mcan102
CHAPTER : NORMALIZATION
MODULE - 2
MCA 1ST SEM
2. SQL, PL / SQL
Ivan Bayross (BPB Publications)
Super key
Foreign key
UNF → 1NF:
✓ Remove repeating groups: ƒ
✓ Entering appropriate data in the empty columns of
rows.
✓ Placing repeating data along with a copy of the
original key attribute in a separate relation. Identifying
a primary key for each of the new relations.
1NF → 2NF:
✓ Remove partial dependencies:
✓ The functionally dependent attributes are removed from
the relation by placing them in a new relation along with a
copy of their determinant.
Compiled By: SANDIP GHOSHAL 24
Normalization
Third Normal Form
❑ For a relation to be in Third Normal Form, it must be in
Second Normal form and the following must satisfy –
❑ No non-prime attribute is transitively dependent on
prime key attribute. For any non-trivial functional
dependency, X → A, then either –
X is a super key or,
A is prime attribute.
2NF → 3NF:
✓ Remove transitive dependencies:
✓ The transitively dependent attributes are removed from
the relation by placing them in a new relation along
with a copy of their determinant.
Compiled By: SANDIP GHOSHAL 25
Normalization
Boyce-Codd Normal Form [ 3.5 Normal Form ]
Transformation to BCNF:
✓ Remove violating functional dependencies by placing
them in a new relation.
Compiled By: SANDIP GHOSHAL 26
Normalization
Multi Valued Dependency [ MVD ]
Bi-Temporal
A bi-temporal database has two axis of time.
❑ valid time. [VST & VET]
❑ transaction time or decision time. [TST & TET]
Tri-Temporal
A tri-temporal database has three axes of time.
❑ valid time.
❑ transaction time
❑ decision time.
Compiled By: SANDIP GHOSHAL 34
Normalization
FDs =>
{ROLLNO, DEPT_NO, HOD} {DEPT_NAME, S_NAME,
STATUS, SUB, SECTION}
{DEPT_NAME} {HOD}
[Assuming HOD & S_NAME are atomic]
FDs =>
FDs =>
TABLE2
{ROLLNO, NAME}
TABLE3
{ROLLNO, FEES_PAID, SECTION}
DK/NF