Skip to content
GATEiit

GATE CSE 2017 Session 2 Q27: When the table for relationship R can be merged into entity A

Syllabus topic: ER model

Question

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?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: C (official GATE 2017 final answer key)

Concept used: A relationship table can be folded into the entity on the 'many' side, where each entity row relates to at most one other entity; total participation avoids null foreign keys.

Concept notes

Loading notes…

First step: Ask on which side each A entity is related to at most one B, so that B's key fits as a single column in A's table.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on ER model

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key