Question

Please answer ASAP Database Consider the relation scheme R = {A, B, C, D, E} with...

Please answer ASAP

Database

Consider the relation scheme R = {A, B, C, D, E} with the FDs
A --> BC
CD --> E
Consider the following decompositions:
(4.a) R1 = {A, B, C} and R2 = {C, D, E}
(4.b) R1 = {A, B, C} and R2 = {A, D, E}
(4.c) R1 = {A, B} and R2 = {A, C, D, E}
(4.d) R1 = {A, B, C}, R2 = {C, D, E} and R3 ={A, D}.
For each decomposition, determine if it is lossless or not. Explain why.

Homework Answers

Answer #1

Solution:

Given,

=>Relation = R(A, B, C, D, E)

=>Set of functional dependencies = {A ->BC, CD -> E}

(a) R1 = {A, B, C} and R2 = {C, D, E}

The answer will be "No"

Explanation:

=>R1 = {A, B, C} with functional dependency = {A -> BC}

Candidate key = {A}

=>R2 = {C, D, E} with functional dependency = {CD -> E}

Candidate key = {CD}

Checking lossless:

=>Attr(R1) U Atr2(R2) = {A, B, C, D, E} = Attr(R) hence first condition is satisfied.

=>There is common attribute "C" between R1 and R2 relations hence second condition is satisfied.

=>The common attribute "C" is not candidat key for any of the relations R1 and R2 hence third condition is not satisfied.

=>As third condition is not satisfied hence decomposition is not lossless decomposition.

(b) R1 = {A, B, C} and R2 = {A, D, E}

The answer will be "Yes"

Explanation:

=>R1 = {A, B, C} with functional dependency = {A -> BC}

Candidate key = {A}

=>R2 = {A, D, E} with no functional dependency.

Checking lossless:

=>Attr(R1) U Atr2(R2) = {A, B, C, D, E} = Attr(R) hence first condition is satisfied.

=>There is common attribute "A" between R1 and R2 relations hence second condition is satisfied.

=>The common attribute "A" is candidat key for relation R1 hence third condition is satisfied.

=>As all the conditions are satisfied hence decomposition is lossless join decomposition.

(c) R1 = {A, B} and R2 = {A, C, D, E}

The answer will be "Yes"

Explanation:

=>R1 = {A, B} with functional dependency = {A -> B}

Candidate key = {A}

=>R2 = {A, C, D, E} with functional dependency = {CD -> E}

Candidate key = {ACD}

Checking lossless:

=>Attr(R1) U Atr2(R2) = {A, B, C, D, E} = Attr(R) hence first condition is satisfied.

=>There is common attribute "A" between R1 and R2 relations hence second condition is satisfied.

=>The common attribute "A" is candidat key for relation R1 hence third condition is satisfied.

=>As all the conditions are satisfied hence decomposition is lossless join decomposition.

(d) R1 = {A, B, C}, R2 = {C, D, E} and R3 = {A, D}

The answer will be "Yes"

Explanation:

=>R1 = {A, B, C} with functional dependency = {A -> BC}

Candidate key = {A}

=>R2 = {C, D, E} with functional dependency = {CD -> E}

Candidate key = {CD}

=>R3 = {A, D} with no functional dependency

Checking lossless:

=>Attr(R1) U Atr2(R2) U Attr(R3) = {A, B, C, D, E} = Attr(R) hence first condition is satisfied.

=>There is common attribute "A" between R1 and R3 relations hence second condition is satisfied.

=>The common attribute "A" is candidat key for relation R1 hence third condition is satisfied.

=>R1 U R2 = {A, B, C, D} and R3 have CD attribute common which is the candidate key for R3.

=>As all the conditions are satisfied hence decomposition is lossless join decomposition.

I have explained each and every part with the help of statements attached to the answer above.

Know the answer?
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
Similar Questions
Given a relation R(A, B, C, D, E) with the following FD Set FD = {...
Given a relation R(A, B, C, D, E) with the following FD Set FD = { A→C, B→C, C→D, DE→A, CE→A} Suppose we decompose it into R1(A, D), R2(A, B), R3(B, E), R4(C, D, E) and R5(A, E), is it a lossless decomposition? Show your proof.
Please quesiton on database function dependency: Suppose we have relation R (A, B, C, D, E),...
Please quesiton on database function dependency: Suppose we have relation R (A, B, C, D, E), with some set of FD’s , and we wish to project those FD’s onto relation S (A, B, C). Give the FD’s that hold in S if the FD’s for R are: c) AB --> D, AC --> E, BC --> D, D --> A, and E --> B. d) A --> B, B --> C, C --> D, D --> E, and E...
4. Consider the relation schema R(ABCDE) with the set of functional dependencies F={B→E, A→B, DE→C, D→A,...
4. Consider the relation schema R(ABCDE) with the set of functional dependencies F={B→E, A→B, DE→C, D→A, C→AE}. For the following relations resulting from a possible decomposition of R, identify the non-trivial functional dependencies which can be projected to each of the decomposed relations. a) S(ABC) b) T(BCE) c) U(ABDE
Define a relation on N x N by (a, b)R(c, d) iff ad=bc a. Show that...
Define a relation on N x N by (a, b)R(c, d) iff ad=bc a. Show that R is an equivalence relation. b. Find the equivalence class E(1, 2)
There is no equivalence relation R on set {a, b, c, d, e} such that R...
There is no equivalence relation R on set {a, b, c, d, e} such that R contains less than 5 ordered pairs (True or False)
2. Define a relation R on pairs of real numbers as follows: (a, b)R(c, d) iff...
2. Define a relation R on pairs of real numbers as follows: (a, b)R(c, d) iff either a < c or both a = c and b ≤ d. Is R a partial order? Why or why not? If R is a partial order, draw a diagram of some of its elements. 3. Define a relation R on integers as follows: mRn iff m + n is even. Is R a partial order? Why or why not? If R is...
Consider the following legal instance of a database: A B C D E ‘a’ 11 3...
Consider the following legal instance of a database: A B C D E ‘a’ 11 3 ‘XY’ 123 ‘aa’ 11 7 ‘XY’ 234 ‘abc’ 22 15 ‘XY’ 345 ‘a’ 22 16 ‘XY’ 456 Can the following functional dependency hold? A --> B
4. Let A={(1,3),(2,4),(-4,-8),(3,9),(1,5),(3,6)}. The relation R is defined on A as follows: For all (a, b),(c,...
4. Let A={(1,3),(2,4),(-4,-8),(3,9),(1,5),(3,6)}. The relation R is defined on A as follows: For all (a, b),(c, d) ∈ A, (a, b) R (c, d) ⇔ ad = bc . R is an equivalence relation. Find the distinct equivalence classes of R.
Consider the relation R defined on the set R as follows: ∀x, y ∈ R, (x,...
Consider the relation R defined on the set R as follows: ∀x, y ∈ R, (x, y) ∈ R if and only if x + 2 > y. For example, (4, 3) is in R because 4 + 2 = 6, which is greater than 3. (a) Is the relation reflexive? Prove or disprove. (b) Is the relation symmetric? Prove or disprove. (c) Is the relation transitive? Prove or disprove. (d) Is it an equivalence relation? Explain.
1. Consider the following regular expressions: • R1 = (b*a)* • R2 = (ab*)* + (a*b)*...
1. Consider the following regular expressions: • R1 = (b*a)* • R2 = (ab*)* + (a*b)* For each of the following strings, answer one of the following: the string is accepted only by R1 the string is accepted only by R2 the string is accepted by BOTH R1 and R2 the string is accepted by NEITHER R1 nor R2 __bbaa    A. Only R2 __abb B. NEITHER R1 nor R2 __aba C. BOTH R1 and R2 __abba D. Only R1...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT