Careeroza
First Normal Form (1NF)
Rules of 1NF
- Each column holds atomic (single, indivisible) values: no lists or comma-separated values.
- No repeating groups of columns (Phone1, Phone2, Phone3).
- Each row is unique (there is a primary key).
Example
Not in 1NF: several phone numbers in one cell.
| StudentID | Name | Phones |
|---|---|---|
| 1 | Asha | 98450-11111, 98450-22222 |
| 2 | Vikram | 99000-33333 |
In 1NF: one value per cell, in a separate table.
| StudentID | Phone |
|---|---|
| 1 | 98450-11111 |
| 1 | 98450-22222 |
| 2 | 99000-33333 |
Why It Matters
Example
With atomic values, "who has this phone number?" is a simple, indexable query instead of string searching:
CREATE TABLE StudentPhones (StudentID INT, Phone VARCHAR(20), PRIMARY KEY (StudentID, Phone));
INSERT INTO StudentPhones VALUES (1, '98450-11111'), (1, '98450-22222'), (2, '99000-33333');
SELECT StudentID FROM StudentPhones WHERE Phone = '98450-22222';Result: 1 row
| StudentID |
|---|
| 1 |