All Exams Test series for 1 year @ ₹349 only
Question

Consider an ER model with the entities E1(A11, A12, A13) and E2(A21, A22, A23), where, A11, A12, A13 are the attributes of E1, and A21, A22, A23 are the attributes of E2. Let A22 be a multi-valued attribute. A11 and A21 are the primary keys of E1 and E2, respectively.

Let R12 be a many-to-many relationship between E1 and E2. Participation of both E1 and E2 in R12 is total.

The minimum number of relations required to convert the ER model into relational model (assuming there is no other functional dependency) where each relation is in third normal form (3NF) is __________ . (Answer in integer)

Converting ER Model to Relational Model

The conversion process requires creating relations for entities, multi-valued attributes, and relationships, ensuring they are in 3NF.

Relation for Entity E1

Entity E1 has attributes (A11, A12, A13), where A11 is the primary key (PK). This converts directly into one relation.

  • Relation 1: E1_Relation(A11, A12, A13)

Relations for Entity E2 with Multi-valued Attribute

Entity E2 has attributes (A21, A22, A23), where A21 is the PK and A22 is a multi-valued attribute.

The entity's regular attributes form one relation, and the multi-valued attribute requires a separate relation linked by the entity's PK.

  • Relation 2: E2_Base(A21, A23)
  • Relation 3: E2_MultiValue(A21, A22)
    (Stores pairs of PK from E2 and values of A22)

Relation for Many-to-Many Relationship R12

R12 is a many-to-many relationship between E1 and E2 with total participation from both.

A many-to-many relationship is converted into a separate relation containing the primary keys of the participating entities.

  • Relation 4: R12_Relation(A11, A21)
    (A11 is FK to E1_Relation, A21 is FK to E2_Base. Total participation implies NOT NULL constraints on FKs.)

Total Relations Calculation

Combining the relations derived:

  • 1 relation for E1
  • 2 relations for E2 (base + multi-valued attribute)
  • 1 relation for the R12 relationship

Total minimum number of relations required = 1 + 2 + 1 = 4.

All derived relations are in 3NF as there are no transitive dependencies beyond the primary keys.

Was this answer helpful?

Important Questions from ER Model

  1. ______ are some problems that can occur when creating an entity-relationship model.

  2. The values of the attributes in a database describe a particular _______.

  3. Which of the following data item is not broken down into smaller units is?

  4. Which of the following statements is/are TRUE?


    (i) A weak entity set is identified solely by its partial key (discriminator).


    (ii) The identifying relationship type between a weak entity type and its owner entity type must have total participation from the weak entity type.

  5. Specialization process does not allow
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App