Question
1. Exercise 4.3.2 We may think of relationships in the E/R model as having keys, just as entity sets do. Let R be a relationship
1. Exercise 4.3.2 We may think of relationships in the E/R model as having keys, just as entity sets do. Let R be a relationship among the entity sets E1, E2, ,En. Then a key for R is a set K of attributes chosen from the attributes of E1, E2,, En such that if (e1,e2,,en) and (f1,f2,,fn) are two different tuples in the relationship set for R, then it is not possible that these tuples agree in all the attributes of K. Now, suppose n=2; that is, R is a binary relationship. Also, for each I, let Ki be a set of attributes that is a key for entity set Ei. In terms of E1 and E2, give a smallest possible key for R under the assumption that:
a) R is many-many
b) R is many-one from E1 to E2.
c) R is many-one from E2 to E1.
d) R is one-one.
Can you explain it too, please?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started