I have this table and I am supposed to re-design it to remove all anomalies from it. I will not give the table but the dependencies.
The functional dependencies are
(Product, Store) -> Dept
Store -> Manager
Dept-> Assist
(Product, Store)->Price
Product-> Weight
Product-> Manufact
Manufact-> Manuloc
Product and Store are the keys in this relation
Ok so I have to remove the anomalies by breaking up the table and creating new ones and state what will be in each table. I am unsure how to do that.
Apply Armstrong’s axioms and the rules derived from them. (I’m sure this is in your textbook. Check the index.) For example, given these two functional dependencies (FDs):
you can apply the transitivity rule to determine an unstated FD:
From the FDs you’re given, derive an irreducible set of FDs; this set determines your tables.
This example is from Date’s Introduction to Database Systems. (He gives a more complete treatment of it.) Given
rewrite for right-hand singletons using Armstrong’s axioms:
The FD
A -> Boccurs twice; we can discard one without losing information. We can reduceAC -> DtoA -> D, and we can eliminateAB -> C. And we can eliminateA -> C, leavingFrom this irreducible set of FDs, you’d derive the two tables