The Databases Course
Exercise No. 7
Design Theory - Theoretical
Due on February 11th by midnight
- Find a non-redundant cover of F.
- Find all the simple keys of R.
- Categorize each dependency from your answer of (a) as a partial, transitive or full dependency.
- Give a 3NF, lossless and dependency preserving (with respect to F) decomposition of S.
- What are the projected dependencies for each of your schemes?
- Find the projected dependencies for each of the relation schemes of p.
- Does p preserve the given dependencies?
- Does p have a lossless join with respect to the given dependencies?
- Every relation whose schema has two fields is in BCNF.
- A relation R that has a single simple key is in BCNF if and only if it is in 3NF.
- If R is in 3NF, and every simple key of R has only one field, then R is in BCNF.
- A ®® B
- BC ®® A
- B ®® C
Answering the above four questions gives a full grade of 100% for this exercise. Answering each of the following questions gives an extra 10%, up to a maximum grade of 24 out of 20 in this exercise.
- Consider a relation with a schema S = (A,B,C,D) and a non-redundant dependency set F that includes three dependencies: AB®C, B®D and another dependency. Can R be in BCNF? If so, with what third dependency?
- A relation with S = (A,B,C) is in 3NF but not in BCNF, and has a non-redundant dependency set F = { C ® B, X ® Y }. Find all the possibilities for X and Y.
- Prove that this algorithm returns a lossless decomposition that is in BCNF.
- Show an example that shows that the algorithm may return a non-dependency-preserving decomposition.
Before the test, be sure to review the following questions from last year:
Exercise 6, question 4.
Exercise 8, questions 4 and 5.