Professional Documents
Culture Documents
DB L0420
DB L0420
1
ENTITY RELATIONSHIP ANALYSIS - ADDITIONAL
FEATURES.
References:
Conceptual Schema
Transaction design
2
Special Cases in E-R Analysis :
Many : Many relationships
Where do you
record the result
of a student for a
class?
decompose into
1 : many/
many : 1
Ternary Relationships
Relationships considered so far are binary ie they involve two entities. It is
possible for relationships to link three entities eg:
"A supplier may supply a range of parts to a number of projects. Each part
is available from a number of suppliers. Each project uses a number of parts
which are available from a number of suppliers."
Used_On
3
Decomposing the many-to-many
relationships gives:
SupplierA SupplierB
ProjectX
ProjectY
ProjectZ
4
A simpler entity realtionship structure which represents
the same information uses a single linker entity to
represent the ternary relationship:
10
5
11
12
6
Enhanced (Extended) entity relationship model - EER (or E2R) model
13
14
7
Enhanced (Extended) entity relationship model - EER (or E2R) model
15
Member
Bank account
Have_registered
d
Monthly
Annual
Office holder
16
8
Specialization lattices
ENGINEERING
MANAGER
17
18
9
Subsets may overlap.
In this example PERSONS are specialized as either
ENGINEERS or MANAGERS but some people are both
engineers and managers. This
19
20
10
Simplified EER
conceptual schema
for a university
database
21
Database design
tools
Software tools are
available that help in the
process of database
design. A typical
architecture for such
tools is shown. They
simplify the
documentation of design
but tend not to be good at
dealing with design
choices etc.
22
11
Summary and conclusion
Entity relationship modelling provides an approach to generating the
conceptual design of a database
23
24
12