Logo
Published on

First Normal Form (1NF) in DBMS – Definition, Examples, and Conversion

First Normal Form (1NF) in DBMS – Definition, Examples, and Conversion

First Normal Form (1NF) is the foundational step in the database normalization process. It ensures that each attribute in a table contains atomic (indivisible) values and that no repeating groups exist within a row. This lays the groundwork for organizing data efficiently, reducing redundancy, and improving consistency.

✅ Requirements of First Normal Form (1NF)

To comply with 1NF, a table must:

  • 🔹 Have only atomic values (no arrays or comma-separated lists).
  • 🔹 Ensure all attributes store a single value per cell.
  • 🔹 Avoid repeating groups by creating new rows for each repeating item.
  • 🔹 Maintain unique rows, where each row represents one distinct record.

🧪 Example 1: Student Contact Numbers (Not in 1NF)

Student_IDNameContact_NumberCourse
101Alice Smith123-456-7890, 098-765-4321Math
102Bob Johnson234-567-8901Science
103Carol White345-678-9012, 543-210-6789History

❌ This table violates 1NF because:

  • The Contact_Number column contains multiple values in a single cell.

✅ Converted to 1NF

Student_IDNameContact_Number
101Alice Smith123-456-7890
101Alice Smith098-765-4321
102Bob Johnson234-567-8901
103Carol White345-678-9012
103Carol White543-210-6789

Each row now:

  • Contains only atomic values.
  • Has no repeating groups.
  • Maintains clear, organized records.

🧪 Example 2: Student Course Enrollments (Not in 1NF)

Student_IDNameCourses
101Alice SmithMath, Science
102Bob JohnsonHistory
103Carol WhiteMath, History, Science

❌ The Courses column includes multiple values, violating 1NF.

✅ Converted to 1NF

Student_IDNameCourse
101Alice SmithMath
101Alice SmithScience
102Bob JohnsonHistory
103Carol WhiteMath
103Carol WhiteHistory
103Carol WhiteScience

Now the table:

  • Satisfies atomicity
  • Eliminates multivalued attributes
  • Is ready for further normalization

🎯 Benefits of Applying 1NF

  • 📉 Reduces redundancy
  • Improves consistency and accuracy
  • 🔄 Eliminates update, insert, and delete anomalies
  • 🧱 Builds a solid foundation for 2NF and 3NF

🧠 Summary

First Normal Form (1NF) ensures that:

  • Each cell in a table holds only a single atomic value.
  • There are no repeating groups within a row.

By converting your tables to 1NF, you lay the groundwork for a cleaner and more scalable database structure.