Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the relational schema R(A,B,C,D) and the following set of functional dependencies: S = {A -> B, BC -> A, D -> C}. A

1. Consider the relational schema R(A,B,C,D) and the following set of functional dependencies: S = {A -> B, BC -> A, D -> C}. A functional dependency X->Y (e.g., BD->A) is said to "logically follow" from S if when you compute the closure X+ ({B,D}+ in this case) it contains Y (A in this case). If X->Y does not logically follow from S, then there must be an instance of the relation R which satisfies the dependencies in S, but does not satisfy X->Y. (*Finding this may take a bit of thinking, and working backward.) For each of the functional dependencies X -> Y below show whether it logically follows from S or not. (So if the answer, is "yes", start by computing X+. If the answer is "no", show the appropriate (*smallest) instance.) (i) A -> C (ii) BD -> A (iii) CD -> A (iv) BCD -> A 2.Consider a relation R(A,B,C,D,E) satisfying the following dependencies: A->B, BC->E,ED->A. (a) List all keys for R. (b) Is R in 3NF? Justify your answer. (c) R is not in BCNF. Explain why? (d) Show the first step in a BCNF decomposition of R, including computing the projection of the dependencies onto the decomposed relations, and identifying keys for each subrelation. (e) Is the above decomposition lossless? Is it dependency-preserving? Are the subrelations in BCNF? 3NF? Explain each of your answers BRIEFLY. (f) Repeat step (d), if necessary, till you have decomposed R into BCNF relations. (g**) Argue whether there is a decomposition that preserves dependencies.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

How is a trial balance used to prepare financial statements?

Answered: 1 week ago

Question

What natural environment challenges do we face? LO.1

Answered: 1 week ago

Question

What are the HR forecasting techniques?

Answered: 1 week ago

Question

Define succession planning. Why is it important?

Answered: 1 week ago

Question

Distinguish between forecasting HR requirements and availability.

Answered: 1 week ago