UGC-NET Jan 2017 · ER-Model

MCQ · 2 marks · Problem DBMS-RELM-0007

Let $M$ and $N$ be two entities in an $E-R$ diagram with simple single value attributes. $R_{1}$ and $R_{2}$ are two relationship between $M$ and $N$, where as $R_{1}$, is one-to-many and $R_{2}$, is many-to-many. The minimum number of tables required to represent $M, N, R_{1}$, and $R_{2}$, in the relational model are .
  1. A
    $4$
  2. B
    $6$
  3. C
    $7$
  4. D
    $3$

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solution\[\boxed{\text{1:N: merge into the N side} \qquad \text{M:N: a separate table}}\]Entities: one table for \(M\) and one for \(N\) (2 tables).\(R_1\) (one-to-many): add the key of the "one" side as a foreign key in the table of the "many" side; no new table.\(R_2\) (many-to-many): needs its own table holding the keys of \(M\) and \(N\) (1 table).Minimum \(= 2 + 0 + 1 = 3\). The official UGC NET key was (A) 4, which counts a table for \(R_1\) that is not needed.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com