A many-to-one relationship exists between entity sets $r_1$ and $r_2$. How will it be represented using functional dependencies if $Pk(r)$ denotes the primary key attribute of relation $r$?
A
$Pk(r_1) \rightarrow Pk(r_2)$
B
$Pk(r_2) \rightarrow Pk(r_1)$
C
$Pk(r_2) \rightarrow Pk(r_1) \text{ and } Pk(r_1) \rightarrow Pk(r_2)$
D
$Pk(r_2) \rightarrow Pk(r_1) \text{ or } Pk(r_1) \rightarrow Pk(r_2)$
Show the worked solutionMany-to-one from \(r_1\) to \(r_2\) means each \(r_1\) entity is related to at most one \(r_2\) entity, while an \(r_2\) entity may relate to many \(r_1\) entities. So the key of \(r_1\) determines the key of \(r_2\):\[Pk(r_1)\to Pk(r_2).\](B) This is the one-to-many direction — incorrect.(C) Both directions together would make the relationship one-to-one — incorrect.(D) "Or" does not fix the direction — incorrect.Answer: A
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com