Professional Documents
Culture Documents
Chapter 15 - Objectives
Chapter 15 - Objectives
10
11
Staff(staffNo,fName,lName,position,sex,DOB)
PrimaryKeystaffNo
12
Preference(prefType,maxRent)
PrimaryKeyNone(atpresent)
13
14
15
16
17
18
Consider1:1StaffUsesCarrelationshipwithoptional
participationonbothsides.Assumemajorityofcars,but
notall,areusedbystaffandonlyminorityofstaffusecars.
Carentity,althoughoptional,isclosertobeingmandatory
thanStaffentity.ThereforedesignateStaffasparententity
andCaraschildentity.
19
21
22
23
24
Createrelationtorepresentrelationshipandinclude
anyattributesthatarepartoftherelationship.
Postcopyofprimarykeyattribute(s)ofentitiesthat
participateinthecomplexrelationshipintonew
relation,toactasforeignkeys.
Anyforeignkeysthatrepresentamanyrelationship
(forexample,1..*,0..*)generallywillalsoformthe
primarykeyofnewrelation,possiblyincombination
withsomeoftheattributesoftherelationship.
25
26
27
28
29
30
31
ReferentialIntegrityConstraintsfor
RelationsinStaffViewofDreamHome
32
33
Step3.1Mergelocallogicaldatamodelsinto
globalmodel
Tomergetheindividuallocallogicaldatamodels
intoasinglegloballogicaldatamodelofthe
enterprise.
34
Typicallyincludes:
(1)Reviewthenamesandcontentsofentities/relations
andtheircandidatekeys.
(2)Reviewthenamesandcontentsof
relationships/foreignkeys.
(3)Mergeentities/relationsfromthelocaldatamodels.
(4)Include(withoutmerging)entities/relationsunique
toeachlocaldatamodel.
(5)Mergerelationships/foreignkeysfromthelocal
datamodels.
35
37
38
39
40
41
42
43