0% found this document useful (0 votes)
57 views8 pages

ch5 Multiplicity Group Exercise

Each person can have at most one passport and each passport is owned by exactly one person. A passport-person association has a 1:1 multiplicity. Items have at least one vendor but some items have more than one. Vendors can supply more than one item but some vendors may not supply any items. An item-vendor association has a 1:N multiplicity. Orders have exactly one delivery but a delivery can be for partial items of an order. An order-delivery association has a 1:N multiplicity.

Uploaded by

Wai Lam Hsu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views8 pages

ch5 Multiplicity Group Exercise

Each person can have at most one passport and each passport is owned by exactly one person. A passport-person association has a 1:1 multiplicity. Items have at least one vendor but some items have more than one. Vendors can supply more than one item but some vendors may not supply any items. An item-vendor association has a 1:N multiplicity. Orders have exactly one delivery but a delivery can be for partial items of an order. An order-delivery association has a 1:N multiplicity.

Uploaded by

Wai Lam Hsu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

• Most people possess a passport; i.e.

some people do not have a


passport.
• A person possesses at most one passport; i.e. a person cannot have
more than one passport.
• Each passport is owned by one and only one person.

• Define the multiplicities for the Person-Passport association.

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.

• Define the multiplicities for the Item-Vendor association.

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.

• Define the multiplicities for the Order-Delivery


association.

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..* , *

You might also like