Question

Consider the relation R with four attributes ABCD. For each of the two following sets of FDs, determine whether or not the R

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

FDs : A -> B , BC -> D, A -> C

From the given FDs, we can determine that A is the candidate key. For a relation to become BCNF, left hand side of the FD should be super key. But, in BC -> D, BC is not super key. Therefore, R is not in BCNF.

BC -> D is a transitive dependency ( non-prime attribute -> non-prime attribute form) , So, (BC)+ will form a new relation. The new relation R1 is (B, C, D) with FDs {BC->D}. and R is (ABC) with FDs {A->B , A->C }.

The above decomposition is in BCNF and loss less join because common attributes (B,C) is candidate key in R1.

2.

Given FDs :

AB -> C, AB -> D, C-> A, D -> B

For the given FDs, we can determine that AB, AD, BC, CD are candidate keys. Since, in C -> A and D -> B , C and D are not superkeys, the given relation is not in BCNF.

C -> A and D -> B are partial dependencies. So, C+ and D+ for new relations.

New relations are R1(C, A) and R2(D, B) and R ( C, D) .

R1(C, A) will have { C -> A }

R2(D, B) will have { D -> B }

and R(C, D) will have CD as candidate key.

This decomposition is in BCNF but not lossless join.

Add a comment
Know the answer?
Add Answer to:
Consider the relation R with four attributes ABCD. For each of the two following sets of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Given the following relation schemas and the sets of FD's: a- R(A,B,C,D) F={ABẠC,C7D, D´A, BC+C} b-...

    Given the following relation schemas and the sets of FD's: a- R(A,B,C,D) F={ABẠC,C7D, D´A, BC+C} b- R(A,B,C,D) F={BẠC, BD, AD>B} C- R(A,B,C,D) F={AB-C, DC+D, CD+A, AD+B} d- R(A,B,C,D) F={AB=C, C+D, D™B, DE} e- R(A, B, C, D, E) F= {AB+C, DB+E, AE>B, CD+A, ECD} In each case, (i) Give all candidate keys (ii) Indicate the BCNF violation Give the minimal cover and decompose R into a collection of relations that are BCNF. Is it lossless? Does it preserve the dependencies?...

  • my choices for these are wrong. 10 points QUESTION 3 Given R=(A, B, C) is a...

    my choices for these are wrong. 10 points QUESTION 3 Given R=(A, B, C) is a schema and F = {2C-A AB) is a set of FDs that hold on R. Which of the following statements is not true? d=(AB. AC) is a decomposition of that is in BCNF. O Ris in 3NF O BC is a candidate key for R Ris in BCN 10 points QUESTION 4 Given R= (A. 3. CD. E) is a schema and F= (A...

  • Consider a relation R with ve attributes A, B, C, D, and E. You are given...

    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)

  • Here's a relation (R), its attributes and its functional dependencies (F): R(A, B, C, D, E)...

    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...

  • For the relation R(O,P,X,Y,E, S) FDs={ O->P, XY->O, OE->S, EY->X, PY->X}. 1.Classi...

    for the relation R(O,P,X,Y,E, S) FDs={ O->P, XY->O, OE->S, EY->X, PY->X}. 1.Classify each functional dependency 2. Decompose the relation into BCNF relation. 3. Determine whether each of the decompositions has the lossless join property with respect to F and conclude for the whole decomposition. 4. Determine whether each of the decompositions has the dependency preserving property with respect to FD and conclude for the whole decomposition

  • Question 1: Functional Dependencies [7 marks Consider a relation R on attributes (A, B, C, D,...

    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....

  • please do question 4. Note that we follow the convention of denoting the set of attributes...

    please do question 4. Note that we follow the convention of denoting the set of attributes {A, B, C} by ABC when we write FDs but not when we write schemas. Given the following set set F of FDs on schema R= (A, B, C, D, E,G): A + BC AB + CD B +C E →D G +C EG → AD Answer the following questions. Questions 1-4 require a formal proof or disproof. A proof may be given either...

  • Consider a relation schema R with attributes ABCDEFGH with functional dependencies S: S={B→CD, BF→H, C→AG, CEH→F,...

    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.

  • 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 o...

    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....

  • Dependency Very Good dependency (key dependency) : XA where Table Very good If all dependencies i...

    Dependency Very Good dependency (key dependency) : XA where Table Very good If all dependencies in a table are '"very good", the table is in BCNF X is a candidate key Good Good dependency: X-> A where If all dependencies in a table are "very good" or "good", the table is in 3NF X is not a candidate key X is a part of a candidate key A is prime attribute Bad Bad dependency (Transitive Dependency): X A where If...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT