Question

Let R(A,B,C,D,E) be a relation with FDs F = {AB-C, CD-E, E-B, CE-A} Consider an instance of this relation that only contains
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The Answer is None of the above can be inserted.

------------------------------------------------------

When there is a functional dependency X->Y

the set of attributes in X should uniquely determine set of attributes in Y.

It means that each combination of values in X should precisely be related with one combination of Y.

Given relation: R(A, B, C, D, E)

F = {AB-->C, CD-->E, E-->B, CE-->A}

Tuple (1, 1, 2, 2, 3) already exists in R

Let us try inserting new tuple

>>>(0, 1, 2, 4, 3)

CE-->A is violated

Because C = 2, E = 3, A = 1 in existing tuple (1, 1, 2, 2, 3)

but C = 2, E = 3, A = 0 in newly inserted tuple  (0, 1, 2, 4, 3)

Same combination of C,E is related to two different values of A. Hence, CE-->A is violated

So this tuple cannot be inserted,

>>>(1, 1, 2, 2, 4)

CD-->E is violated

Because C = 2, D  = 2, E = 3 in existing tuple (1, 1, 2, 2, 3)

but C = 2, D = 2, E = 4 in newly inserted tuple  (1, 1, 2, 2, 4)

Same combination of C,D is related to two different values of E. Hence, CD-->E is violated

So this tuple cannot be inserted,

>>>(1, 2, 2, 2, 3)

E-->B is violated

Because E = 3, B =1 in existing tuple (1, 1, 2, 2, 3)

but E = 3, B = 2 in newly inserted tuple  (1, 2, 2, 2, 3)

Same combination of E is related to two different values of B .Hence, E-->B is violated

So this tuple cannot be inserted,

>>>(1, 1, 3, 2, 3)

AB-->C is violated

Because A = 1, B =1, C = 2 in existing tuple (1, 1, 2, 2, 3)

but A = 1, B =1, C = 3 i in newly inserted tuple  (1, 1, 3, 2, 3)

Same combination of A, B is related to two different values of C. Hence, AB-->C is violated

So this tuple cannot be inserted,

Hence

The Answer is None of the above can be inserted.

---------------------------------------------

I hope this helps you,

Please rate this answer if it helped you,

Thanks for the opportunity

Add a comment
Know the answer?
Add Answer to:
Let R(A,B,C,D,E) be a relation with FDs F = {AB-C, CD-E, E-B, CE-A} Consider an instance...
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
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