Alevel 1 DBMS 26may2020 AV
Alevel 1 DBMS 26may2020 AV
Solution1:
Firstly find the candidate key in the relation:
(AC)+ = ABCDE
AC is the candidate key, because closure of AC has all the attributes of R.
Prime attributes: AC
Non prime attributes: BDE
A relation is said to be 3NF, if it holds at least one of the following for every non
trivial functional dependency α β:
α is super key.
β is prime attribute.
So, the relation is not in 3NF as it is not following the rules of 3NF.
Prepared By
National Institute of Electronics & Information Technology (NIELIT), Gorakhpur
राष्ट्रीय इलेक्ट्रॉनिकी एवं सूचिा प्रौद्योनगकी संस्थाि ,गोरखपुर
Solution 2:
Firstly find the candidate key in the relation:
(ABD)+ = A B C D E F G H I
ABD is the candidate key, because closure of ABD has all the attributes of R.
Prime attributes: A B D
Non prime attributes: C E F G H I
A relation is said to be 3NF, if it holds at least one of the following for every non
trivial functional dependency α β:
α is super key.
β is prime attribute.
Prepared By
National Institute of Electronics & Information Technology (NIELIT), Gorakhpur
राष्ट्रीय इलेक्ट्रॉनिकी एवं सूचिा प्रौद्योनगकी संस्थाि ,गोरखपुर
So, the relation is not in 3NF as it is not following the rules of 3NF.
Exercise:
1. Suppose R (A B C D E F G H I J) and set of FDs
F : { AB C,
A DE,
B F,
F GH,
D IJ }
The above table is normalized up to 3NF or not? If not, decompose it in 3NF.
Prepared By