Normalisation
Normalisation
Normalisation avoids:
1. Repeated groups
2. Data redundancy
3. Anomalies
3.1. Update
3.2. Insertion
3.3. Deletion
4. Complex queries
Update anomaly An update anomaly occurs when the same data needs to be
updated in more than one place.
Deletion anomaly Deletion anomaly occurs when a deletion causes the unnecessary
loss of data.
Insertion anomaly Deletion anomaly occurs when records are added that do not satisfy
the primary key requirements.
Primary Key A field in a table that uniquely identifies each record in the table.
Super key A combination of fields in a table which uniquely identifies each row.
Partial dependency When a field's value is dependent on only a part of a composite key.
Derived data When you use a field to calculate another. - note data is not stored
Duplicate data When a record has the same value for a field as another record -
note: not wrong and must not be removed
Atomic data Each value of a field should store a single data item and should not
be combined.
Redundant data A condition created within a database in which the same piece of
data is held in two separate places.
Form Achievements
However,
● Data redundancy is not eliminated
● No new relations are generated
3NF ● In 2NF
● No transitive dependencies