Relational design scenario: restrict children relations
问题 please consider the following scenario. An pet owner may have multiple cats, and may also have multiple dogs. Some of the dogs are related (ie they fight :-) ) with some of the cats of the same owner . The following relational design does not impose this restriction, as Cats and Dogs of different owners may be related. Is there a way to impose this restriction by relational design? 回答1: You'd need to use identifying relationships to migrate the owner's PK down both "sides" and to the "bottom"