Database.Explain 1NF, give example

📘 First Normal Form (1NF)

1NF (First Normal Form) is the basic level of normalization.
A table is in 1NF if:

  1. All columns contain atomic (indivisible) values
  2. Each row is unique
  3. Each column contains values of a single type
  4. There are no repeating groups or arrays

❌ Example: Not in 1NF

Table: Students

StudentIDNameSubjects
1AliceMath, Physics
2BobChemistry
  • ❌ The Subjects column has multiple values in one field → not atomic
  • This is not in 1NF

✅ Example: In 1NF

To convert to 1NF, we split multivalued fields into separate rows:

Table: StudentSubjects

StudentIDNameSubject
1AliceMath
1AlicePhysics
2BobChemistry
  • ✅ Now each field is atomic
  • ✅ No repeating groups
  • ✅ 1NF is satisfied

🧠 Tip to Remember:

“No lists or arrays in cells, just one value per column per row.”

This entry was posted in Без рубрики. Bookmark the permalink.