Consider the following relational schema:
Assume that, in the suppliers relation above, each supplier and each street within a city has unique name, and (sname, city) forms a candidate key. No other functional dependencies are implied other than those implied by primary and candidate keys. Which one of the following is about the above schema?
View worked solution
Answer: A
To determine the highest normal form of the given relational schema, we analyze each relation individually. Recall that a relation is in Boyce-Codd Normal Form (BCNF) if, for every non-trivial functional dependency , the determinant is a superkey.
1. Relation:
- Primary Key:
- Candidate Keys:
- (Primary Key)
- (Given as a candidate key)
- Functional Dependencies (FDs):
Since no other FDs are implied other than those by the primary and candidate keys, the non-trivial FDs are:
For both FDs, the left-hand side (determinant) is a candidate key (and hence a superkey). Thus, the relation is in BCNF.
2. Relation:
- Candidate Key:
- Functional Dependencies:
The determinant is a superkey. Thus, the relation is in BCNF.
3. Relation:
- Candidate Key:
- Functional Dependencies:
The determinant is a superkey. Thus, the relation is in BCNF.
Conclusion
Since all three relations in the schema are in BCNF, the entire schema is in BCNF.
Free practice · Your answers on this page are not saved.
