Consider the schema and the dependencies and . Let be a decomposition such that . The decomposition is
View worked solution
Answer: D
To determine the normal form of the decomposed relations, let us first analyze the functional dependencies (FDs) of the relation :
Step 1: Find the Candidate Keys of
Let's compute the attribute closures:
Since the closure of each individual attribute contains all the attributes of the relation, the candidate keys of are: , , , and .
Step 2: Identify Prime and Non-Prime Attributes
- Prime attributes (attributes that are part of any candidate key):
- Non-prime attributes: None ()
Step 3: Analyze the Decomposition and
For any decomposition where :
- The attributes in any sub-relation ( or ) are a subset of .
- Since the original FDs form a complete cycle, every single attribute in can determine all other attributes in . Thus, every attribute in is a candidate key for .
- Consequently, there are no non-prime attributes in either or .
Step 4: Check Normal Forms
- 2NF (Second Normal Form): A relation is in 2NF if there is no partial dependency of a non-prime attribute on any candidate key. Since there are no non-prime attributes, 2NF is trivially satisfied.
- 3NF (Third Normal Form): A relation is in 3NF if, for every non-trivial dependency , either is a superkey or is a prime attribute. Since all attributes in and are prime, 3NF is also satisfied.
Thus, the decomposition is in both 2NF and 3NF.
Free practice · Your answers on this page are not saved.
