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
For simplicity assume that FD's are:-
F->CD
E->B
BDG->C
G->BD
BG->DE
F->E
BE->AF
FG->CD
candidate key = {G} (given)
Now,testing whether relation is in 3NF or not?
A relation is said to be in 3NF if all the functional dependencies of relation has its left side as super key or its right side as prime attributes(attributes which are part of candidate key)
Prime attributes here is G only.
Clearly, given relation has many FD's like F->CD, E->B,F->E and BE->AF which has neither its left side as super key or its right side as prime.
So,the given relation is not in 3NF.
A relation is said to be in BCNF if all the FD's in relation has its left side as super key.
Clearly, there are many FD's like F->CD,E->B,F->E and BE->AF which doesn't satisfy above requirements of BCNF.
So,the above relation is not in BCNF.
So,the given relation is neither in 3NF nor in BCNF.
We have the attributes: {A, B, C, D, E, F, G}. Consider the following functional dependencies...
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...
We have the attributes: {A, B, C, D, E, F, G}. Consider the following functional dependencies E, F → C E → F B → A, G A, E, F → C, G D → A C, D, F → B, E, G A → B B, E → D, G Mark all functional dependencies that are implied by the dependencies above: a). D,F --> E, F b). D,F --> A,F c) D,F --> A d) D,F -->G e) D,F...
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 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 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....
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....
Given the schema S= < { A,B,C,D,E,G,H }, F>, where F represents the following dependencies: AB→D A→D E→B E→C G→C E→A EB→GH H → A Find a minimal cover for this schema. Find a key for this schema. Find a third normal form decomposition for this schema. Find a BCN form decomposition for this schema.
Suppose we have the following relation (R) that keeps track of car sales: R(car date_sold, salesperson#, comission_rate, discount) In addition to the functional dependency implied by the primary key (car#), assume the following functional dependencies: date_sold discount salesperson commission_rate Explain why this relation is not in Boyce-Codd Normal Form (BCNF). a. b. Show how you would normalize this relation to achieve Boyce-Codd Normal Form by drawing a new relational schema. Highlight all primary keys by underlining them and use arrows...
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