Normal Forms
Normal Forms
Courses
Example 2 -
ID Name Courses
------------------
1 A c1, c2
2 E c3
3 M C2, c3
:
In the above table, Course is a multi-valued
attribute so it is not in 1NF. Below Table is in 1NF
as there is no multi valued attribute
ID Name Course
------------------
1 A c1
1 A c2
2 E c3
3 M c1
3 M c2
Example:
:
Partial Dependency - If the proper subset of
candidate key determines non-prime attribute, it is
called partial dependency.
FD set: {COURSE_NO->COURSE_NAME}
Candidate Key: {STUD_NO, COURSE_NO}
In FD COURSE_NO->COURSE_NAME,
COURSE_NO (proper subset of candidate key) is
determining COURSE_NAME (non-prime
attribute). Hence, it is partial dependency and
relation is not in second normal form. To convert
it to second normal form, we will decompose
the relation STUDENT_COURSE (STUD_NO,
COURSE_NO, COURSE_NAME) as :
1. In 2NF and
2. Non-prime attributes are not transitively
dependent on prime attributes.
1. X is a Superkey
2. A-X is a prime attribute
3. X → is a trivial functional dependency.
Example:
Candidate Keys:
(Stud_ID, Subject), Prof_id, (Prof_id, Stud_ID)
BC->D,
AC->BE,
:
B->E
Key Points -
ABC --> D
CD --> AE
Report An Issue
If you are facing any issue on this page. Please let us know.
: