IAE Academy

GATE 2024 CS2 Q.20: solution and answer

GATE 2024 · CS2Q.20 · 1 mark · MCQ

In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?

  1. (A)

    The weak entity set MUST have total participation in the identifying relationship

  2. (B)

    The owner entity set MUST have total participation in the identifying relationship

  3. (C)

    Both weak and owner entity sets MUST have total participation in the identifying relationship

  4. (D)

    Neither weak entity set nor owner entity set MUST have total participation in the identifying relationship

See the question in the paper

Answer and solution

ANSWER

The correct option is (A): the weak entity set must have total participation in the identifying relationship.

Official answer: ASource: Official answer key, GATE 2024 CS2 (IISc Bengaluru)

  1. A weak entity set has no key of its own. Each weak entity is identified by its partial key (discriminator) together with the primary key of one owner entity.

  2. The identifying relationship links the weak entity set to its owner entity set. It is many-to-one from weak to owner.

  3. A weak entity with no owner could not be identified at all. So every weak entity must be related to some owner, which means the weak entity set has total participation in the identifying relationship.

  4. An owner entity may have no dependents. For example, an employee may have no dependents, so the owner set need not participate totally.

  5. So only statement (A) must hold. (B) and (C) wrongly require the owner to participate totally, and (D) denies the weak set's total participation.

KEY IDEA

A weak entity exists only through its owner, so every weak entity must take part in the identifying relationship, which is total participation on the weak side. The owner side is unconstrained.

WATCH OUT FOR

Thinking the owner must also participate totally. An owner can have no weak entities, such as an employee with no dependents.

From the GATE 2024 CS2 paper. Every question of this paper · Download the full paper · All 5 ER model questions, with notes

More ER model questions