![]() 33
a. One-to-one Relationships, contohnya
:
Each branch
is managed
by one member of staff
A member of staff ca
manage zero or one branch
Staff
staffNo
Manages ?
1.. 1
0.. 1
Branch
branchNo
Multiplicity
Gambar 2.3. Contoh One-to-One Relationships
(sumber : Conolly dan Begg, 2005, p358)
b.
One-to-Many Relationships, contohnya :
Each property for rent is
overseen by zero or one
member of staff
Each member of staff
oversees zero or more
properties for rent
Staff
staffNo
Oversees ?
0.. 1
0.. *
PropertyForRent
propertyNo
Gambar 2.4. Contoh One-to-Many Relationships
(sumber : Conolly dan Begg, 2005, p359)
|