Normalization Gfgc
Normalization Gfgc
Modification anomalies
EXAMPLE OF AN UPDATE
ANOMALY
Consider the relation:
EMP_PROJ ( Emp#, Proj#, Ename, Pname, No_hours)
Update Anomaly
Changing the name of project number P1 from “Billing” to
“Customer-Accounting” may cause this update to be made for all
100 employees working on project P1
Insert Anomaly
Cannot insert a project unless an employee is assigned to .
Inversely- Cannot insert an employee unless he/she is assigned to
a project.
EXAMPLE OF AN UPDATE
ANOMALY (2)
Delete Anomaly
When a project is deleted, it will result in deleting all the
employees who work on that project. Alternately, if an employee
is the sole employee on a project, deleting that employee would
result in deleting the corresponding project.
Design a schema that does not suffer from the
insertion, deletion and update anomalies. If there
are any present, then note them so that applications
can be made to take them into account
Null Values in Tuples
Examples:
SSN DMGRSSN is a transitive FD since
SSN DNUMBER and DNUMBER DMGRSSN hold