Professional Documents
Culture Documents
Systems
CT014-3-2
Learning outcomes
At the end of this lecture you should be able
to:
explain terminologies used.
explain the use of ER Modelling notations.
demonstrate how to build an ER Model.
Primary Key
Foreign Key
Relationship
degree of relationship
one to one
one to many
many to many
multiplicity
cardinality
CT014-3-2 Database and Web Database Systems
Terminologies
Entity Relationship Diagrams (ERDs) illustrate
the logical structure of databases.
Terminologies
Entity
an object about which the system need to store data,
such as Customer or Product
Attributes of an entity
data items or elements that make up that entity
E.g. customerName, customerAddress those significant
to the system
Value of an attribute
E.g. John Barrett is the value of the attribute
customerName
Terminologies
Primary Key
of an entity is an attribute or a set of attributes whose
values uniquely identify one occurrence of that entity
Entity primary keys are underlined as shown here:
E.g. Customer (customer#, initial, surname,
customerAddress, customerPhone)
Foreign key
an attribute in one entity which is the primary key of
another entity
acts as a link or navigation route between related
entities
Terminologies
Relationship
a link between two entities which is significant for the
system
E.g. customer places an order
places describes a relationship between Customer and an
order
Degree of relationship
can be
one to one
one to many
many to many
Figure 2: Variation 2 Information Engineering notation from Oracle Designer/ 2000 CASE
CT014-3-2 Database and Web Database Systems
Chen Notation
Entity
Multivalued
attribute
Weak Entity
Derived
attribute
Attribute
Relationships
Cardinality
Key attribute
Weak
Relationships
Recursive
Relationship
For each entity, list its attributes and check the attributes for
completeness.
Follow-up Assignment
Answer Questions 1 and 2 of Tutorial
Summary
Entity Relationship Modelling
Terminologies
ER Modelling Notations
How to build an ER Model
Q & A Session
Next Session
Logical Data Modelling