We read your photo as:
Normalize the provided flat file into three relations: Member, Transaction, and Operation.
ScanSolve AI Answer
Step-by-step solution
2 stepsHere's the solution to your database normalization problem.
Task A1: Database (20 Marks)
The problem asks to normalize a flat file into three relations:
Member(MID, MName, MAdd)Transaction(TID, TType, Amount)Operation(MID, TID, ODate)
1. Develop the Member table:
The Member table should contain unique MID, MName, and MAdd entries from the original Table 1.
Identify unique
MID,MName, andMAddcombinations fromTable 1.- M10, Mbong, Buea
- L05, Lyonga, Bamenda
- O20, Otia, Wum
- O15, Omar, Garoua
- S04, Susan, Douala
- L12, Linus, Bertoua
- G11, Gertrude, Yaounde
- T07, Tita, Maroua
Construct the
Membertable with these unique entries.Member +-----+--------+----------+ | MID | MName | MAdd | +-----+--------+----------+ | M10 | Mbong | Buea | | L05 | Lyonga | Bamenda | | O20 | Otia | Wum | | O15 | Omar | Garoua | | S04 | Susan | Douala | | L12 | Linus | Bertoua | | G11 | Gertrude| Yaounde | | T07 | Tita | Maroua | +-----+--------+----------+The
Membertable is:Member(MID, MName, MAdd) MID | MName | MAdd ----|---------|---------- M10 | Mbong | Buea L05 | Lyonga | Bamenda O20 | Otia | Wum O15 | Omar | Garoua S04 | Susan | Douala L12 | Linus | Bertoua G11 | Gertrude| Yaounde T07 | Tita | MarouaThis table is derived by selecting distinct combinations of
MID,MName, andMAddfrom the originalTable 1.2. Give the reason why the table above is not normalized.
The original
Table 1is not normalized because it contains redundant data and update anomalies. Specifically:- Redundancy: Member details (MName, MAdd) are repeated for each transaction by the same member. For example, "Mbong, Buea" appears multiple times.
- Update Anomalies: If a member's address changes, multiple rows would need to be updated. If one row is missed, data inconsistency occurs.
- Insertion Anomalies: A new member cannot be added without a transaction.
- Deletion Anomalies: Deleting a member's last transaction would also delete the member's details.
These issues indicate that the table is not in at least First Normal Form (1NF) due to repeating groups of non-key attributes, and certainly not in higher normal forms like 2NF or 3NF due to partial and transitive dependencies.
3. State the key for each of the tables.
- For
Member(MID, MName, MAdd): The key isMID. - For
Transaction(TID, TType, Amount): The key isTID. - For
Operation(MID, TID, ODate): The key is a composite key of(MID, TID).
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.