Second Normal Form: Prime Attribute An Attribute, Which Is A Part of The Prime-Key, Is Known As A
Second Normal Form: Prime Attribute An Attribute, Which Is A Part of The Prime-Key, Is Known As A
We see here in Student_Project relation that the prime key attributes are
Stu_ID and Proj_ID. According to the rule, non-key attributes, i.e.
Stu_Name and Proj_Name must be dependent upon both and not on any
of the prime key attribute individually. But we find that Stu_Name can be
identified by Stu_ID and Proj_Name can be identified by Proj_ID
independently. This is called partial dependency, which is not allowed
in Second Normal Form.
X is a superkey or,
A is prime attribute.
We find that in the above Student_detail relation, Stu_ID is the key and
only prime key attribute. We find that City can be identified by Stu_ID as
well as Zip itself. Neither Zip is a superkey nor is City a prime attribute.
Additionally, Stu_ID Zip City, so there exists transitive
dependency.
To bring this relation into third normal form, we break the relation into
two relations as follows