GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 83

Attributes in the mapped M relation

Database Management Systems · Database Models, Architecture & ER Diagrams · Full GATE CSE 2008 paper

GATE 2008, Q83 2 marks · MCQ
Report issue

Database Models, Architecture & ER Diagrams

Question 83, GATE 2008: An ER diagram has strong entities M with attributes M1 (key), M2,M3, and P with attributes P1 (key),P2. Relationship R1 is many-to-one from M to P, with total participation of M. N is a weak entity with partial key N1 and attribute N2. Its identifying relationship R2 is many-to-one from N to owner P, with total participation of N. Neither relationship has attributes. In the minimum-table standard mapping, which is the attribute set of one resulting table?

(A) {M1,M2,M3,P1}
(B) {M1,P1,N1,N2}
(C) {M1,P1,N1}
(D) {M1,P1}
Question 83, GATE 2008: An ER diagram has strong entities M with attributes M1 (key), M2,M3, and P with attributes P1 (key),P2. Relationship R1 is many-to-one from M to P, with total participation of M. N is a weak entity with partial key N1 and attribute N2. Its identifying relationship R2 is many-to-one from N to owner P, with total participation of N. Neither relationship has attributes. In the minimum-table standard mapping, which is the attribute set of one resulting table?

(A) {M1,M2,M3,P1}
(B) {M1,P1,N1,N2}
(C) {M1,P1,N1}
(D) {M1,P1}
Question 83, GATE 2008: An ER diagram has strong entities M with attributes M1 (key), M2,M3, and P with attributes P1 (key),P2. Relationship R1 is many-to-one from M to P, with total participation of M. N is a weak entity with partial key N1 and attribute N2. Its identifying relationship R2 is many-to-one from N to owner P, with total participation of N. Neither relationship has attributes. In the minimum-table standard mapping, which is the attribute set of one resulting table?

(A) {M1,M2,M3,P1}
(B) {M1,P1,N1,N2}
(C) {M1,P1,N1}
(D) {M1,P1}
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. The many-to-one R1 relationship associates each M with a unique P. Total participation means every M must have that owner/reference.
2. Store P’s key P1 as a foreign key beside M’s own attributes M1,M2,M3; a separate R1 table is unnecessary.
3. Thus M’s table has {M1,M2,M3,P1}, A. N is represented separately by owner key P1, partial key N1 and N2; there is no direct M-to-N relationship to justify the other sets.

Original paper, page 18