First Normal Form (1NF)
Context: FIT2094_MOC Β· a valid relation with a PK and no repeating groups Β· the first Normalisation step Β· partial dependencies listed here
Quick Revision
- π― Objective: a valid relation with a PK and no repeating groups β the first normalisation step.
- π¦ Core Components: unique PK β atomic cells β all attributes depend on all/part of the PK.
- β‘ Key Constraint: still leaves partial and transitive dependencies β list partial dependencies here.
π Core
1. The 1NF Conditions
- Unique PK β identified for each tuple.
- Valid relation β entity integrity (no part of PK NULL), atomic cells (no repeating groups).
- Dependence β all attributes functionally depend on all or part of the PK.
2. UNF β 1NF Steps
- Identify PK β for the main relation.
- Remove repeating group β into a new relation, bringing the original PK.
- New PK β usually composite (original PK + repeating groupβs identifier).
3. List Partial Dependencies
- Definition β non-key depends on part of a composite key.
- Example β in RESTOCK.
- Removed at β 2NF.
When It Flips: if the UNF had no repeating group (ENROLMENT), 1NF creates no new relation β only a PK is added. 1NF is the valid-relation requirement (Relation Properties) plus a PK; anomalies persist until 2NF/3NF.
π Exam Execution Trace
Manual Execution Trace
UNF β 1NF for PART:
| Step / State | Action | Result |
|---|---|---|
| 0 (Init) | UNF PART | bracketed group |
| 1 | identify PK | part_no |
| 2 | remove repeating group | RESTOCK |
| 3 | new PK | (part_no, vendor_no, restock_date) |
β οΈ Common Mistakes
- π‘ Move the repeating group, never flatten β a multivalued cell breaks atomicity; 1NF removes only repeating groups, leaving partial/transitive dependencies.
π§ Active Recall
State the conditions for 1NF and the UNFβ1NF steps.
- Hint: PK + atomic + remove repeating group.
Answer
- Short answer: Unique PK, entity integrity, atomic cells; move the repeating group to a new relation carrying the original PK.
- Why: Composite new PK β usually original PK + repeating groupβs identifier.
What must you list at 1NF, and why is 1NF still anomaly-prone?
- Hint: Partial dependencies remain.
Answer
- Short answer: List all partial dependencies; 1NF removes only repeating groups.
- Why: 2NF/3NF β partial and transitive dependencies remain until removed later.