Professional Documents
Culture Documents
Model
Leo Mark
(May 2002)
The Real
The Model
World
real
custome
rs 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
• the names of multiple relationship
types between the same two entity
0-N and 1-N relationship types
1 N
airport from flt-schedule
partial
Mandatory 0-N and 1-N
relationship types
1 N
airport from flt-schedule
total
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#
• flt-instance cannot
flt-schedule
exist without flt-
schedule
• flt-instance cannot
from
be identified
without flt-schedule
date
• (flt#, date) identifies
flt-instance
flt-instance
recursive relationship types
out
in
departure arrival
time time
Are relationships entities?
Or, are they just “glue”?
1 N
airport from flt-schedule
departure
time
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?