Newsgroups: comp.databases.theory
From: mikl...@gmail.com
Date: 19 Sep 2006 02:42:24 -0700
Local: Tues, Sep 19 2006 11:42 am
Subject: Re: Ternary Relationship cardinality
Hi Jan,
> The general rule is as follows: If you have a relationship R(a,b,c) Thanks for the insight... > then you have to ask for each role, say 'a', how its cardinality > depends on the combination of the other two, in this case 'b' and 'c'. > If the upperbound is 1 then you put 1 on the corresponding edge in the > diagram, if there is no upperbound you put N or M there. > Minor detail: if *every* child has two parents your database will Care to expand on this? Note that parents can come into existence by > either be infinite or some will be their own descendants. purchase, however since Children are a specialization of 'parent', they can also breed. Thanks, Mike Jan Hidders wrote:
> mikl...@gmail.com wrote: > > I know what cardinality is... and I know how to implement it > > My problem is with the notation for a particular Ternary relationship. > > (Supertype) [Parent]------[0..*]----- <Breeding> > Your ASCII art is a bit unclear so let me tell you how I interpret > - Each Parent participates in zero or more instances of that > Minor detail: if *every* child has two parents your database will > > The prob is when I use the N:1 notation..my first reaction would be to > > (Supertype) [Parent]------1----- > The general rule is as follows: If you have a relationship R(a,b,c) > So let's look at Child. Given two particular parents what is the upper > Clear? > -- Jan Hidders You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||