2.4.2. Second Normal Form (2Nf) : Student# Studentname Dateofbirth Course# Coursename Prerequisite Durationindays
2.4.2. Second Normal Form (2Nf) : Student# Studentname Dateofbirth Course# Coursename Prerequisite Durationindays
In the fourth table (EXAM_DATE) Course# is the key attribute and the
non-key attribute, DateofExam is fully functionally dependant on the key
attribute.
These four tables are also complaint with the First Normal Form
definition. Hence these four tables are in Second Normal Form (2NF).
At first look it appears like all our anomalies are taken away! Now we are
storing Student 103 and M4 record only once. We can insert prospective students and
courses at our will. We will update only once if we need to change any data in
STUDENT, COURSE tables. We can get rid of any course or student details by
deleting just one row.
Let us analyze the following table.
Student# Course# Marks Grade
101 M4 82 A
102 M4 62 C
101 H6 79 B
103 C3 65 B
104 B3 77 B
102 P3 68 B
105 P3 89 A
103 B4 54 D
105 H6 87 A
104 M4 65 B