Computer ScienceNEB 2081

Evaluate the advantages of DBMS compared to traditional file based data storage systems. [5] OR How does Second Normal Form (2NF) differ from First Normal Form (1NF), and what are the key benefits…

5

Evaluate the advantages of DBMS compared to traditional file-based data storage systems. [5] OR How does Second Normal Form (2NF) differ from First Normal Form (1NF), and what are the key benefits of achieving 2NF in database design ? Explain. [2+3]

Answer

Difference between 1NF and 2NF

Aspect First Normal Form (1NF) Second Normal Form (2NF)
Definition All attributes contain atomic (indivisible) values; the table has no repeating groups or arrays. The relation is already in 1NF and every non‑key attribute is fully functionally dependent on the whole primary key (no partial dependency on a part of a composite key).
Primary‑key requirement May be a single attribute or a composite key; 1NF does not restrict dependencies. Must eliminate partial dependencies that arise when a composite key is present.
Example of violation Table StudentCourse with columns (StudentID, CourseID, StudentName, CourseName). Repeating groups are removed, but StudentName depends only on StudentID, not on (StudentID, CourseID). In the same table, StudentName and CourseName are partially dependent on parts of the composite key; moving them to separate tables (Student, Course) achieves 2NF.
Goal Ensure a flat, tabular structure with atomic values. Remove redundancy caused by partial dependencies, leading to smaller, more stable tables.

Key Benefits of Achieving 2NF

  • Elimination of Redundant Data – Attributes that depend only on a part of the primary key are stored once, reducing storage waste and update anomalies.
  • Improved Data Integrity – Since each non‑key attribute is fully dependent on the whole key, insert, delete, and update operations are less likely to produce inconsistent records.
  • Simplified Maintenance – Changes to a single attribute (e.g., a student's address) need to be made in only one place, lowering the risk of missed updates.
  • Better Query Performance – Smaller, well‑structured tables mean faster search and join operations, especially when indexed on primary keys.
  • Facilitates Further Normalisation – A relation in 2NF is ready for progression to 3NF and BCNF, enabling a fully normalised database design.

Discussion

Loading…

More Computer Science questions

All Computer Science old questions