Indicate which of the following statements are true:
A relational database which is in NF may still have undesirable data redundancy because there may exist:
View worked solution
Answer: A;B;D
A relation is in Third Normal Form (3NF) if, for every non-trivial functional dependency , at least one of the following conditions holds:
- is a superkey.
- is a prime attribute (i.e., each attribute in is part of some candidate key).
A relation is in Boyce-Codd Normal Form (BCNF) if, for every non-trivial functional dependency , is a superkey. BCNF eliminates all redundancy arising from functional dependencies. Therefore, any redundancy present in a 3NF relation is due to dependencies allowed in 3NF but forbidden in BCNF (i.e., where is not a superkey, but consists of prime attributes).
Let us analyze each option based on this:
- Option A (True): 3NF prevents transitive dependencies of non-prime attributes on candidate keys. However, it allows transitive dependencies of prime attributes. For example, if and where is a candidate key, is not a superkey, and is a prime attribute, this transitive dependency is allowed in 3NF but causes redundancy.
- Option B (True): Dependencies of the form where is a prime attribute and is not a superkey are allowed in 3NF. Since is not a superkey, this causes data redundancy.
- Option C (False): If prime attributes are only on the left-side (e.g., where contains non-prime attributes), then for the relation to be in 3NF, must be a superkey. If is a superkey, this dependency is also valid in BCNF and does not introduce BCNF-level redundancy.
- Option D (True): If a dependency involves only prime attributes and is not a superkey, it is allowed in 3NF (since consists of prime attributes) but violates BCNF, leading to redundancy.
Example: Consider a relation with candidate keys and . All attributes are prime. The dependency is non-trivial, involves only prime attributes (Option D), has a prime attribute on the right-side (Option B), and represents a transitive dependency of on (Option A). This relation is in 3NF but not in BCNF, and contains redundant data.
Free practice · Your answers on this page are not saved.
