GateAI
ER Model

GATE CSE 2017 Set 2 · Q17

MCQ1 markMedium

Time

An ER model of a database consists of entity types A and B. These are connected by a relationship R which does not have its own attribute. Under which one of the following conditions, can the relational table for R be merged with that of A?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) Relationship R is many-to-one and the participation of A in R is total.

ER Model

When converting an ER diagram into relational schemas:

  1. Relationship Cardinality (Many-to-One from A to B): In a many-to-one relationship from entity set AA to entity set BB, each entity in AA is associated with at most one entity in BB. Thus, the primary key of table AA can also serve as the primary key of relationship RR.

  2. Participation Constraint (Total Participation of A): If the participation of AA in RR is total, every entity in AA is guaranteed to be related to some entity in BB. Merging the relationship relation RR into table AA by adding the primary key of BB as a foreign key attribute in table AA will never result in NULL values for the foreign key.

  3. Partial Participation: If participation of AA were partial, merging would introduce NULL values for entities in AA that do not participate in RR.

Therefore, the table for RR can be safely merged with AA when the relationship RR is many-to-one from AA to BB and the participation of AA in RR is total.

Hence, (C) is the correct option.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This ER Model previous year question is Q17 of the GATE CSE 2017 Set 2 paper. Find more GATE CSE PYQs on ER Model in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related ER Model PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

ER Model in GATE CSE

ER Model has 8 GATE CSE PYQs across 8 papers from 2012 to 2026. 7 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2017 Set 2.

How GATE tests ER Model

More from GATE CSE 2017 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2017 Set 2 · Q17 · MCQ

An ER model of a database consists of entity types A and B. These are connected by a relationship R which does not have its own attribute. Under which one of the following conditions, can the relational table for R be merged with that of A?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.