Professional Documents
Culture Documents
Data Modelling
Session Outline
Session Objectives
Enable students to:
l draw Entity-Relationship Diagrams for manufacturing
systems
Relevant course objectives
l use systems analysis and design tools for information
systems development
Entity-relationship modelling
Techniques
l
entity-relationship modelling
a top-down approach that starts with data groups
Terminology
l
l
l
l
l
l
l
Keys
Keys (cont.)
Relationships
l
l
l
Degree of Relationships
Four options:
One to one
One to many
CUSTOMER
WIFE
DOCTOR
PATIENT
MUSICIAN
PERFORMANCE
ORDER
Many to many
HUSBAND
NAMED relationships:
Reflexive
Places
CUSTOMER
ORDER
CUSTOMER
Types of Relationship
l
Summary of Notation
Entity
One to one
One to many
MOTHER
DAUGHTER
Many to many
Mandatory - optional
Redundant Data
Data is redundant if:
l
l
l
The first of these just wastes space, the other two can
cause major problems.
CUSTOMER
ORDER
PRODUCT
CUSTOMER
CustomerName
CustomerAddress
(CustomerPhone)
LastOrderDate
PRODUCT
ProductDescription
PacketSize
CostPerPacket
ORDER
CustomerName
(CustomerPhone)
CustomerAddress
DateRequired
{ProductDescription
PacketSize
NumberOfPackets}
ORDER
CustomerNumber
DateRequired
ProductCode
NumberOfPackets
PRODUCT
Initial model
ORDER
PRODUCT
ProductCode
ProductDescription
PacketSize
CostPerPacket
CUSTOMER
PRODUCT
Revised model
ORDER
ORDER
CustomerNumber
DateRequired
PRODUCT
ProductCode
ProductDescription
PacketSize
CostPerPacket
ORDER LINE
CustomerNumber
DateRequired
ProductCode
NumberOfPackets
ORDERLINE
Summary
Entity-relationship modelling is a topdown approach;