5 votes 5 votes Given R(ABCD) and AB → C ; ABD → C ; ABC → D ; AC → D which the highest possible normal form for the above relation ? Databases database-normalization databases + – learncp asked Dec 17, 2015 learncp 5.4k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 9 votes 9 votes Any relation is not in 2NF iff PROPER SUBSET OF CANDIDATE KEY determines NON PRIME ATTRIBUTE.. AB is key here & there is no FD which Violate 2NF definition. it is in 2NF but not in 3NF.. Digvijay Pandey answered Dec 17, 2015 • selected Dec 18, 2015 by Pooja Palod Digvijay Pandey comment Share Follow See all 4 Comments See all 4 4 Comments reply srestha commented Dec 26, 2015 reply Follow Share why not in 3NF? 0 votes 0 votes shiva commented Dec 26, 2015 reply Follow Share because AC -> D is (prime) Transitive Dependency which is not allowed in 3 NF. using the word 'prime' as A is prime attribute, it is combined with a non prime attribute C to determine another non prime attribute D, which still makes it Transitive Dependent. 0 votes 0 votes srestha commented Dec 26, 2015 reply Follow Share AC is prime then. prime -> nonprime is not a matter for 3NF 0 votes 0 votes shiva commented Dec 26, 2015 reply Follow Share AB is the only candidate key in this example, and thus A and B are prime attributes and C and D are non prime attributes. AC imply (prime + non-prime) [(prime + non-prime) -> non-prime] dependency is still a Transitive Dependency just like any other [non-prime -> non-prime] dependency This is not allowed in 3 NF 1 votes 1 votes Please log in or register to add a comment.
6 votes 6 votes Above relation is in 1 NF Here (AB)+ =ABCD So, AB is the candidate key and ABD,ABC are super key here in,AC→D , AC is nonprime attribute partially dependent on prime attribute ABC So, it is not even 2NF, it will be 1NF srestha answered Dec 17, 2015 srestha comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes Answer is 2 NFStep 1: We need to find the minimal FD set or Canonical FD set Minimal FD set : { AB -> C, AB -> D, AC -> D } Canonical FD set : { AB -> CD, AC -> D }Step 2: Finding the Candidate Keys In this case, AB is the candidate KeyStep 3: Classify the FD to Corresponding Highest Normal Form 1. AB -> CD (Full Functional Dependency)FD is in BC NF (Candidate Key/Super Key -> any set of attributes) 2. AC -> D (Prime Transitive Dependency)FD is in 2 NF (Prime(key) Attributes + Non-Prime(non-key) Attributes -> Non-Prime (non-key) Attributes)Thus, Highest Normal form for the given FD set is 2 NF shiva answered Dec 26, 2015 • edited Dec 26, 2015 by shiva shiva comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes AC-> D is a partial functional dependency , which is not allowed in 2NF , so the relation must be in 1NF Rabia Singh answered Dec 23, 2015 Rabia Singh comment Share Follow See all 6 Comments See all 6 6 Comments reply shiva commented Dec 26, 2015 reply Follow Share AC -> D is (prime)Transitive Dependency and not Partial FD, so it is in 2NF 1 votes 1 votes Sona Barman commented Apr 10, 2018 i edited by Sona Barman Apr 10, 2018 reply Follow Share Can you explain how can we identify partial dependencies? If [(prime)+(non-prime)]->non-prime transitive dependencies exists then not partial dependencies? Pls help. 0 votes 0 votes abhishekmehta4u commented Apr 10, 2018 reply Follow Share A---->B . A ia proper subset of key and B is non prime attribute then it is partial dependency . example R(ABC) (KEY =AB) A---->C HERE A IS PART OF KEY AND C IS NONPRIME ATTRIBUTE SO IT IS PARTIAL DEPENDENCY. 1 votes 1 votes Sona Barman commented Apr 10, 2018 reply Follow Share Yes, you are right.But how AC->D is not partial dependencies in this question? Since A is part of candidate key. 2 votes 2 votes abhishekmehta4u commented Apr 10, 2018 reply Follow Share No .. You take all attribute of LHS. here AC is proper subset of key. Not only take A. 2 votes 2 votes Sona Barman commented Apr 10, 2018 reply Follow Share Nice explanation. Doubt clear. 2 votes 2 votes Please log in or register to add a comment.