Question

Q3: Given a relational schema ? = {?, ?, ?, ?, ?, ?, ?, ?, ?,...

Q3:
Given a relational schema
? = {?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?} and a set of functional dependencies
? = {? → ? ? ? ?, ? → ? ? ?, ? → ?, ? ? → ?} and a key(R) = AI

1. Is R in BCNF? If yes, justify your answer.
2. If no, explain why and decompose R for two levels only.
3. Check whether the decomposition in step 2 dependency preserved or not.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given

  • ? = {?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?}
  • Set of functional dependencies:
  • ? = { ? → ? ? ? ?, ? → ? ? ?, ? → ?, ? ? → ? } and a
  • key(R) = A I

Key Attribute : A , I

Non Key Attribute: B ,C ,D, E ,F ,G ,H ,J, K

Answer(1) NO, Relation R is not in  BCNF.

Reason :

Partial Dependency is exist in the FD's.  

Given below 3 FD's violate 2NF condition. so They are NOT in 2NF , 3NF and BCNF

? → ? ? ? ?,

? → ? ? ?,

? → ?,

Answer(2). Because of partial depency in FD's , Relaion R is not in BCNF.

Decomposition:   ? = {?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?}

R1(A I K J) R2 ( AE BCDFGH)

? → J   ? ? → ?   ? → ? ? ? ?, ? → ? ? ?,

  • Again Partial dependency in Both table so again decompose:

R1(A I K ) R11(I J) R2 ( A BCDE)    R22 ( E FGH)

? ? → ?    ? → J ? → ? ? ? ?, ? → ? ? ?

  • Now the Relation R into BCNF Relation:
  • We need 4 tables then only it satisfy BCNF Decompostion:Initial in 2 table is was not satisfying BCNF Decomposition.

Answer(3). Yes the decomposition in step 2 is dependency preserving.

R1(A I K ) R11(I J) R2 ( A BCDE)    R22 ( E FGH)
? ? → ? ? → J ? → ? ? ? ?, ? → ? ? ?

all dependency are preserved

Add a comment
Know the answer?
Add Answer to:
Q3: Given a relational schema ? = {?, ?, ?, ?, ?, ?, ?, ?, ?,...
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