ER Model · Databases
11 questions · asked in 8 of 27 years (2000–2026)
MCQ 10 · NAT 11-mark 8 · 2-mark 3
2000Questions per year2026
Questions 11–11 of 11
Let E1 and E2 be two entities in an E/R diagram with simple single-valued attributes. R1 and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum number of tables required to represent this situation in the relational model?
Answer: (B)
Count the tables needed:
- E1: 1 table.
- E2: 1 table.
- R1 (one-to-many, no attributes): no table. Put the key of the "one" side as a foreign key in the table of the "many" side.
- R2 (many-to-many): 1 table, holding the keys of E1 and E2.
Total = 1 + 1 + 1 = 3 tables.
Answer: (B)
- E1: 1 table.
- E2: 1 table.
- R1 (one-to-many, no attributes): no table. Put the key of the "one" side as a foreign key in the table of the "many" side.
- R2 (many-to-many): 1 table, holding the keys of E1 and E2.
Total = 1 + 1 + 1 = 3 tables.
Answer: (B)
Keep practising