Chapter8 Database&Normalisation
Chapter8 Database&Normalisation
Flat file DB
A table is in 1 NF if:
1NF does not eliminate redundancy, but rather, it’s that it eliminates repeating groups.
Instead of having multiple columns of the same kind of data in a record, (0NF or
Unnormalized form) you remove the repeated information into a separate relation and
represent them as rows. This is what constitutes 1NF.
Normalisation
2NF
What is wrong in this table? Many courses have the same fees.
Note – 2NF tries to reduce the redundant data getting stored in memory. For instance, if there
are 100 students taking C1 course, we don't need to store its Fee as 1000 for all the 100 records,
instead once we can store it in the second table as the course fee for C1 is 1000.
Normalisation
PK
FK
PK as Composite key
Normalisation
Normalisation
All keys and every key in any table should only depend on PK.
Normalisation
SUMMARY
Recap
Normalizing an example table