Principles of Information and Data Management problem:
First Let's find the candidate keys:-
clearly,since A can't be determined it must be a part of candidate key.
(AB)+ = ABCDE
since,D determines B so,(AD) is also candidate key.
candidate keys = {AB , AD}
a).Definition of BCNF:-
A relation is said to be in BCNF if all the functional dependencies have its left side as super key.
clearly,Functional dependencies like C->D and D->BE doesn't satisfies the above definition.
so,to make Relation R BCNF we need to decompose let's say after decomposition R becomes R1,R2 and R3.
R1(A,B,C)
AB->C
R2(C,D)
C->D
R3(D,B,E)
D->BE
There is foreign key from R1's C to R2's C ad R2's D to R3's D.
Now all the functional dependencies have its left side as key.so,above decompostion is in BCNF.
b).Projecting data :-
R1(A,B,C)
A | B | C |
1 | 1 | 2 |
1 | 2 | 3 |
1 | 3 | 5 |
2 | 1 | 2 |
2 | 2 | 3 |
2 | 3 | 7 |
3 | 1 | 1 |
3 | 2 | 4 |
3 | 3 | 5 |
R2(C,D)
C | D |
2 | 3 |
3 | 1 |
5 | 2 |
7 | 2 |
1 | 3 |
4 | 1 |
R3(D,B,E)
D | B | E |
3 | 1 | 2 |
1 | 2 | 2 |
2 | 3 | 5 |
c).First we will join R2 and R3 then we will get
R23(B,C,D,E)
B | C | D | E |
1 | 2 | 3 | 2 |
1 | 1 | 3 | 2 |
2 | 3 | 1 | 2 |
2 | 4 | 1 | 2 |
3 | 5 | 2 | 5 |
3 | 7 | 2 | 5 |
Now,joining R1 and R23 we get
R123(A,B,C,D,E)
A | B | C | D | E |
1 | 1 | 2 | 3 | 2 |
2 | 1 | 2 | 3 | 2 |
3 | 1 | 1 | 3 | 2 |
1 | 2 | 3 | 1 | 2 |
2 | 2 | 3 | 1 | 2 |
3 | 2 | 4 | 1 | 2 |
1 | 3 | 5 | 2 | 5 |
3 | 3 | 5 | 2 | 5 |
2 | 3 | 7 | 2 | 5 |
Clearly,R123 is exactly same as R.
Principles of Information and Data Management problem: 3. Given the following schema of a relation R(A,B,C,D,E) with the following functional depen- dencies: AB → C, C → D, D → B. D → E. and the foll...
For the following relation schema and set of FD's R(A,B,C,D) with FD's AB->C, B->D, CD->A, AD->B Indicate the BCNF violations, and decompose the relations into relations that are in BCNF.
consider the schema R-(A,B.C,D,E) and the following set F of functional dependencies holds on R ABC CD-E B- D E-A Problem 2. Suppose that we decompose the relation schema R into R, -(A, B, C) and R, (C, D,E). Show that this decomposition is not a lossless-join decomposition.
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.
1. Given the schema R(A,B,C,D,E) with the functional dependencies F = { A → C,D D B, E B, C + D, E E → B,C } Is this schema in BCNF? If it is, prove it. If not, find a BCNF decomposition and then prove that the decomposition is in BCNF. You must prove each step carefully.
Help ASAP! 1. (10 pts) Given a relation schema R = (A, B, C, D, G, H) and a set of functional dependencies F = {D -> G, CD -> G, D -> C, H -> G} Find FC, a canonical cover of F. Please show all the steps to get your answer. 2. (30 pts) A Hollywood movie studio uses a relation called Movie to keep track of information about movie stars, what fee a star charges for...
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....
Suppose that you decompose a schema R (A, B, C, D, E) into two schemas as below: R1 (A, B, C) R2 (C, D, E) Show that this decomposition is not a lossless join decomposition. Hint: Take a suitable Relation, r, for the Schema R and show that r is a lossy join decomposition.
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)