Cardinalities

Cardinalities - Cardinalities Cardinalities are easiest if...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
Cardinalities Cardinalities are easiest if you do them one entity at a time. A B
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Start with the left-hand entity Cover up the other entity. A B (     ,     )
Background image of page 2
Do the minimum cardinality first Does each instance participate? yes=1, no=0 A B ( ?   ,     ) (0 ,     )
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Then do the maximum cardinality Does any instance correspond to more than 1? yes=N, no=1 A B (0 ,     ) (0 , 1)
Background image of page 4
(0 , 1) Now do the right-hand entity Cover up the other entity A B
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Do the minimum cardinality first Does each instance participate? yes=1, no=0 A B ( ?   ,     ) (0 ,     )
Background image of page 6
Then do the maximum cardinality Does an instance correspond to more than 1? yes=N, no=1 A B (0 ,     ) (0 , 1)
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
And voila! A B (0 , 1) (0 , 1)
Background image of page 8
Another example A B
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A B ( ?   ,     ) (0 ,     ) (0 , N)
Background image of page 10
A B ( ?   ,     ) (1 ,  ?  ) (1 , 1)
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A B (0 , N) (1 , 1)
Background image of page 12
TYPE peanut butter & jelly BLT peanut butter & banana INGREDIENTS SANDWICH INGREDIENT bread peanut butter jelly bacon lettuce banana (1 , N) (1 , N)
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/07/2011 for the course ACCT 307 taught by Professor Scrowley during the Spring '08 term at S.F. State.

Page1 / 23

Cardinalities - Cardinalities Cardinalities are easiest if...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online