Er Model
Er Model
Leo Mark
(May 2002)
The Real World The Model
real
customers
customer
surrogates
Entity Type and entity surrogates
airport
airport
name
Hartsfield Logan
Kastrup
airport
su
th mo th
weekdays we we
mo mo
flt-schedule
Composite Properties
1 Flughafen St
airport
400 Flight Av
airport 12 Logan Rd
street
90123
56789
12345
1-1 relationship types
1 1
female- current male-
customer marriage customer
partial functions
partial function
Mandatory 0-N and 1-N
relationship types
1 N
airport from flt-schedule
total function
N-M relationship types
N M
customer reservation flt-instance
N-ary relationship types
plane-part-
supplier L supply plane-part
M
repair- flt-repair-
order# order
flt#
out
in
departure arrival
time time
Are relationships entities?
Or, are they just “glue”?
1 N
airport from flt-schedule
departure
time
N M
customer reservation flt-instance
payment
method
payment
method
1 N M 1
customer reservation flt-instance
payment
method
x
passenger
Female
business class
passenger
UNION entity types
company person
payer
property or entity type?
family
name
customer
relationship type or entity type?
flt-instance
reservation
customer
What’s the Result Type of a
Query?