Normalization: 1NF
First normal form is simple: every value must be atomic. No lists, no repeating groups, no hidden multiple values in one cell.
In plain English
One fact per box. Do not stuff a whole shopping list into one cell.
The one idea
First normal form: every attribute holds one atomic value, and no relation contains repeating groups.
Relational operations assume a value is a value. A comma-separated list cannot be joined, filtered, or constrained like a proper relation.
By the end
- 01State the 1NF rule.
- 02Recognize multivalued and repeating attributes.
- 03Decompose a non-1NF table.
- 04Choose a primary key for the decomposed tables.
The rule
A relation is in first normal form if every attribute contains only atomic values and there are no repeating groups. A cell holding "555-0100, 555-0101" is a multivalued attribute, not an atomic value. A table with Phone1, Phone2, Phone3 columns has a repeating group.
Decomposition
Move the multivalued attribute into a separate relation with a foreign key back to the original entity. Student(id, name, phones) becomes Student(id, name) and StudentPhone(student_id, phone). The new table's primary key is the combination of student_id and phone.
before:
Student(id, name, phones)
1, Ada, "555-0100, 555-0101"
after:
Student(id, name)
StudentPhone(student_id, phone)
1, 1, 555-0100
1, 1, 555-0101Why it matters
Atomic values make queries, constraints, and updates predictable. You can index a phone number, enforce a format, or count phones without parsing a comma-separated string. 1NF is the foundation for every later normal form.
The phone list in one cell
Student(id, name, phones) stores 555-0100, 555-0101 in a single cell.
Try to find every student with phone 555-0101.
A substring search is required; an index on the list cannot answer it cleanly.
Split the list into StudentPhone(student_id, phone).
Each phone becomes one atomic value and one row.
Declare (student_id, phone) as the key.
The same phone cannot be attached to the same student twice.
ConclusionA repeating group becomes a child relation. The parent keeps its identity; the child carries the many values.
Instrument
Watch it happen.
Step through one operation at a time
Start with the unnormalized table
The table violates 1NF: atomic values.
| id | name | phones |
|---|---|---|
| 1 | Ada | 555-0100, 555-0101 |
| 2 | Grace | 555-0200 |
The trade-off
No free correctness.
Gain
Values can be indexed, joined, constrained, and updated independently.
Cost
More rows and one more join to reconstruct the list.
Verdict
Always normalize operational data to 1NF; store arrays only in systems designed for them.
Recap
What to keep.
Takeaways
- +1NF requires atomic values and no repeating groups.
- +Multivalued attributes become separate relations.
- +Repeating columns such as Phone1, Phone2 are not 1NF.
- +The decomposed relation usually has a composite key.
- +1NF makes constraints and queries simpler.
Traps
- !Storing comma-separated lists in a single column.
- !Using repeating columns instead of a child table.
- !Thinking 1NF requires a single-column primary key.
Focus
- →Identify a non-atomic attribute.
- →Decompose a multivalued attribute into a child table.
- →Explain why atomic values help constraints.
Check yourself
Before you turn the page.
What is required for 1NF?
How do you represent a multivalued attribute in 1NF?