One Relation for E1
One Relation for E2R (since E2 has total participation, R can be merged with E2 with new key as composite key containing key from E2 and E1).
Eg.
E1:
A (Key) |
B |
a1 |
b1 |
a2 |
b2 |
a3 |
b3 |
E2:
C (Key) |
D |
c1 |
d1 |
c2 |
d2 |
c3 |
d3 |
Relation R -
Key of E1 |
Key of E2 |
a1 |
c1 |
a2 |
c1 |
a2 |
c2 |
a1 |
c3 |
Here E1 has partial participation as a3 does not participate in any relation. E2 has total participation because all c1, c2 and c3 participate in some relation.
So we can combine E2 and R as
E2R - (CA is a composite key)
C |
D |
A |
c1 |
d1 |
a1 |
c1 |
d1 |
a2 |
c2 |
d2 |
a2 |
c3 |
d3 |
a1 |
Hence 2 relations are required.