(a) Here there are 2 candidate keys are AB and BC because {AB}+ = {A,B,C,D,E} using FDs AB -> C, BC -> D, CD -> E and DE -> A and {BC}+ = {A,B,C,D,E} using FDs BC -> D, CD -> E , DE -> A and AB -> C.
There is no other candidate key because every candidate key must contain attribute B since B cannot be obtained by other attributes than B.
(b) Here the FD CD -> E and DE -> A are violating BCNF because neither CD nor DE are candidate key( since every FD of the form X-> A should have X as candidate key in BCNF).
(c) Decomposing R based on FD CD -> E, will given R1(C, D, E) and R2( {A,B, C,D,E} - {C,D,E} + {C,D} ) = R2(A,B,C,D).
Hence the decomposition of R based on FD CD -> E will give R1(C, D, E) and R2(A,B,C,D).
(d) Decomposing R based on FD DE -> A, will given R1(A, D, E) and R2( {A,B, C,D,E} - {A,D,E} + {D,E} ) = R2( B,C,D, E).
Hence the decomposition of R based on FD DE -> A will give R1(A, D, E) and R2( B,C,D, E).
(e) Here in relation R, the FD CD -> E is violating 3NF because neither CD is candidate key nor E is part of any key. Also FD DE -> A is violating 3NF because neither DE is candidate key nor A is part of any key.
Hence in decomposition of R based on FD CD -> E will give R1(C, D, E) , based on FD DE -> A will give R2(A, D, E) and hence R3(B, D, E) will be in 3NF( DE is common attribute between R2 and R3).
Hence decomposition of R into R1(C, D, E) , R2(A, D, E) and hence R3(B, D, E) will be in 3NF.
Please comment for any clarification.
Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a)...
Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a) Specify all candidate keys for R. (b) Which of the given functional dependencies are Boyce-Codd Normal Form (BCNF) violations'? (c) Give a decomposition of R into BCNF based on the given functional dependencies. (d) Give a different decomposition of R into BCNF based on the given functional dependencies. (e) Give a decomposition of R into 3NF based on the given functional dependencies.
Consider a...
Here's a relation (R), its attributes and its functional dependencies (F): R(A, B, C, D, E) C D → B A → D D → C E → C What is the closure of AB ({AB}+)? What is the closure of F (F+)? [ set of closures for all LHS][each LHS on one line] What is the minimal set (cover) for F? Provide a key for relation R (a minimal set of attributes that can determine all attr.) Decompose the...
Language: SQL - Normalization and Functional
Dependencies
Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold over this relation. F=D → C, A B,A-C Question 4.1 (3 Points) Determine all candidate keys of R Question 4.2 (4 Points) Compute the attribute cover of X-(C, B) according to F Question 43 (5 Points) Compute the canonical cover of F.Show each step of the generation according to the algorithm shown in class....
Consider relation R(A,B,C,D) with functional dependencies: B → C D→ A BA → D CD → B Decompose R into Boyce-Codd Normal Form (BCNF). Clearly show all intermediary steps.
Question 1: Functional Dependencies [7 marks Consider a relation R on attributes (A, B, C, D, E, F,G, H) and the following functional dependen- cies. B →G C →D DE →GC → EF DEF → H (a) What is the closure of [F, G, Hy? (b) List all of the candidate keys of R under the dependencies above. (c) List all of the FDs above that are 3NF violations (d) List all of the FDs above that are BCNF violations....
Consider the following relation R(A,B,C,D,E,G) and the set of functional dependencies F = { A → BCD BC → DE B → D D → A} Give a 3NF decomposition of the given schema based on a canonical cover
Consider a relation R with five attributes A, B, C, D, and E. You are given the following functional dependencies: A → B, BC→E, and ED→A. (a) Is R in BCNF? If it is not, decompose it into a collection of BCNF relations. 2: BCNF and 3NF (3 points) Consider the relation schema R with attributes A, B, C, and D and the following functional dependencies: AB→C, AC→B, B→D, BC→A. (a) Is R in BCNF? If it is not, decompose...
We have the attributes: {A, B, C, D, E, F, G}. Consider the following functional dependencies F → C, D E → B B, D, G → C G → B, D B, G → D, E F → E B, E → A, F F, G → C, D The minimal keys are: {G} Determine whether these functional dependencies are in the following normal form(s): Third Normal form or Boyce Codd normal form
Consider the following relation R = {A,B,C,D,E} and the following set of functional dependencies F = { A → BC CD → E B → D E → A} F = { A → BC CD → E B → D E → A} Give a lossless, dependency-preserving decomposition into 3NF of schema R
Consider a relation R with ve attributes A, B, C, D, and E. You are given the following functional dependencies: A->B, BC->E, and ED->A. (a) List all keys for R. (10 points) (b) Is R in BCNF? If it is, explain why. If is not, decompose it into a collection of BCNF relations. (20 points) (c) Is R in 3NF? If it is, explain why. If it is not, convert it into a collection of 3NF relations. (20 points)