Solution:
(1)
Given relation R(A, B, C, D, E, F, G)
(a)
Given functional dependencies ={ G -> CDE, A -> F, BF -> ABC, FC -> G}
=> Closure of AB => (AB)+ = ABFCGDE => (AB)+ = ABCDEFG
(b)
Given fucrtional dependencies = { D ->A , C -> D, A -> B, AB -> C}
=> Closure of AB => (AB)+ = ABCD
(2)
Given relation R(A, B, C, D, E)
=> 3NF: A functional dependency X -> Y is in 3 NF iff
(i) X must be a superkey
(ii) Y must be a prime attribute
At least one of the two conditions should be satisfied in case of 3 NF
=>BCNF: A functional dependency X -> Y is in BCNF iff
(i) X must be a superkey
(a)
Given functional dependencies = { AB -> C, A-> B, A -> DE, C -> D}
=> Finding candidate keys: We can see that there is no "A" attribute at the right-hand side part of any of the functional dependencies so attribute "A'' must be included in all the candidate keys as candidate keys have the ability to derive all the attributes of the relation.
(A)+ => Closure of A = ABCDE means A can derive all the attributes of the relation R so A is candidate key and there will be no more candidate keys as we must need to include attribute "A" in all candidate keys and "A" is already a candidate key so super keys will be formed in that case.
=> Candidate keys = {A}
=> Checking 3 NF: Given functional dependency C -> D is not
in 3NF as C is not superkey and D is not a prime attribute.
=> Checking BCNF: As the relation is not in 3NF so it can't be in BCNF
So the relation is not in 3 NF and also not in BCNF
(b)
Given functional dependencies = { E -> BCD, D -> AE, B -> CD}
=> Finding candidate keys:
(B)+ = ABCDE
(D)+ = ABCDE
(E)+ = ABCDE
=>candidate keys are = {B, D, E}
=> Checking 3 NF: Relation is in 3 NF as all the left part of every functional dependency is a superkey.
=> Checking BCNF:Relation is in BCNF as all the left part of every functional dependency is a superkey.
So the relation is in both 3 NF and BCNF
For the following relations and set of FDs: 1. give a key for the relation; 2....
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 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...
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(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 the relation R(A,B,C,D) with FDs A -> B, C -> D, AD -> C, BC -> A. Check for both BCNF and 3NF status. Which of the following is the most accurate summary of the results?R is in BCNF and 3NF. No normalization is necessary.R is in 3NF but not in BCNF. We should try normalizing to BCNF, but this results in information being lost. As such, we stay with the original schema.R is in BCNF but not in 3NF....
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 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)
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} Give a lossless, dependency-preserving decomposition into 3NF of schema R
Let R(A,B,C,D,E) be a relation with FDs F = {AB-C, CD-E, E–B} (2 Points) Select one: O Ris in 3NF but not in BCNF. O Ris not in 3NF but in BCNF. O Ris in 3NF and in BCNF. R is not in 3NF and not in BCNF.
Consider a relation schema R with attributes ABCDEFGH with functional dependencies S: S={B→CD, BF→H, C→AG, CEH→F, CH→B} Employ the BCNF decomposition algorithm to obtain a lossless decomposition of R into a collection of relations that are in BCNF. Make sure it is clear which relations are in the final decomposition and project the dependencies onto each relation in that final decomposition.