swisscheese
swisscheese

Reputation: 1775

Subtype / SuperType Relationships: How to fulfill these requirements

I am fighting with myself trying to model a DB to fulfill certain requirements.

Here are four possibilities that I have come up with. As I said I don't really know in what direction I should go. It might be that none of my options are ideal. I would appreciate any feedback that can help sort this out.

Thanks

enter image description here

Upvotes: 0

Views: 714

Answers (1)

At a glance, it looks like Ex1 is the only diagram that expresses these two requirements.

  • Every team contact is a person.
  • Some persons are members.

Ex2 doesn't refer to members at all.

Ex3 would seem to allow any party (including teams) as a team contact.

Ex4 explicitly allows any party (including teams) to be a team contact.

You might consider another unexpressed but common requirement--that a person can be a contact of only one team at a time. (That might not apply in your particular case. I can't tell.)

Upvotes: 2

Related Questions