Академический Документы
Профессиональный Документы
Культура Документы
CSC3064
Database Engineering
Lecture 2 - ERD
Entity
Entity
Attribute
Attribute
Multi-valued Attributes
Key should not change its value over the life of each entity
instance.
Key should be guaranteed to not be NULL.
Avoid intelligent-keys (stored data as part of a key such as a
code).
Substitute single-attribute surrogate keys for large composite
keys.
Multi-valued Attributes
10
Relationship
An association between the instances of
12
it is important
Give examples to clarify the action
Optional participation should be explained
10.14
13
14
Degree of Relationship
Degree
Number of entity types that participate in a relationship
Three cases
Unary
Binary
15
16
Binary Relationship
Crows Foot
One
many
One or many
17
18
Ternary Relationships
Unary Relationships
19
20
Cardinality
Weak Entity
an occurrence of one entity cannot exist unless
Maximum cardinality
box.
Minimum cardinality
21
Examples
22
Examples cont
23
24
25
26
28