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…
5Evaluate 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
Which of the following is the purpose of using primary key in database ? a) To uniquely identify a record b) To store duplicate record c) To backup data d) To…NEB 2082 (MCQs)1A company needs to modify an existing table by adding a new column for employee email addresses. For this, which SQL command should be used ? a) CREATE b)…NEB 2082 (MCQs)1Which protocol is used for secure communication over a computer network ? a) HTTP b) FTP c) HTTPS d) TelnetNEB 2082 (MCQs)1Which control structure in JS (Java Script) is used to execute a block of code repeatedly based on a given condition ? a) For loop b) if else c) switch case…NEB 2082 (MCQs)1Select the invalid variable name in PHP. a) $name b) $ name c) $1name d) $name123NEB 2082 (MCQs)1The statement int number ( int a); is a ... a) function call b) function definition c) function declaration d) function executionNEB 2082 (MCQs)1