has two-singled attributes and of which is the key attribute. has two singled-valued attributes and of which is the key attribute. has two single-valued attributes and of which is the key attribute. The relationships do not have any attributes.
If a relational model is derived from the above model, then the minimum number of relations that would be generated if all relation are in is________________.
View worked solution
Answer: 4
To find the minimum number of relations in 3NF, we analyze the entities and their relationships step-by-step:
1. Entity Sets
- has attributes: with primary key .
- has attributes: with primary key .
- has attributes: with primary key .
2. Many-to-Many () Relationship
For an relationship between and , we cannot merge the relationship into either entity relation without causing redundancy and violating 2NF/3NF. Thus, we must create a separate relation for :
Where and are foreign keys referencing and respectively.
3. One-to-Many () Relationship
For a relationship where is on the -side and is on the -side, we can merge the relationship into the relation of the -side entity () by adding the primary key of as a foreign key. This avoids creating an extra relation and keeps the schema in 3NF:
Here, the functional dependencies are and . Since the determinant is a candidate key, this relation is in 3NF.
4. Final Set of Relations
The minimum set of relations required is:
Thus, the minimum number of relations is 4.
Free practice · Your answers on this page are not saved.
