ch5 Multiplicity Group Exercise
ch5 Multiplicity Group Exercise
Person Passport
Problem 1
• We know at least one vendor per item.
• For some items we know more than one vendor.
• Some vendors do not supply any items.
• Most vendors supply more than one item.
Item Vendor
Problem 2
• We currently have more than 100 open orders.
• We accept partial deliveries from vendors.
• There is exactly one order for each delivery.
Order Delivery
(Purchase)
Problem 3
Parent Child
Problem 4
• We pay (cash disbursement) a vendor for all purchase
transactions that occur during the month at the end of the
month with one check.
• We also pay (cash disbursement) our employees at the end
of the month.
Cash
Purchase Disbursement
Problem 5
• Monica S.Eles owns a “Stuffed Animals” store in downtown Lansing.
• Her business is going extremely well since she started (last year) selling exclusive
items such as ‘Seven Dwarfs’ Limited Edition, the ‘Aristocats’ Diamond Series, the
ultimate ‘TinTin’ collection, etc.
• Currently, Monica has 486 different types of stuffed animals, such as: Sleepy-small,
Sleepy-big, Garfield-yellow, Garfield-gold, etc. For each item type she records name,
description and quantity on hand (QOH).
• She has two item types in stock (TinTin small and Obelix big) nobody seems to be
interested in. She sells stuffed animals exclusively.
• Yesterday, she sold 3 Sleepy-small and 4 Garfield-gold to a customer (one invoice).
Item Type
(Stuffed Animal) Sale
-name (PK) -invoice_no. (PK)
-description -date
-quantity on hand quantity -amount
Problem 6
We design an AIS for a CD store. We have 100 vendors in our database. We record information for
CD types only; not for the individual CD’s (or copies). We record quantity on hand per CD type. CD
(type) information can be recorded into the database if at least one order for the CD (type) exists.
There is at least one CD (type) per order. Partial shipments exist. Open orders exist. We place more
than 500 orders every month. Specify the multiplicities for the four empty boxes on the diagram.
MIN MAX
Order
Vendor
CD (Type) Purchase
/ shipment
MIN MAX
Problem 7
Answers
1. 1..1 , 0..1
2. 0..* , 1..*
3. 1..1 , 0..*
4. 1..* , 1..*
5. 0..* , 0..1
6. 1..* , 0..*
7. 1 , 0..* , *