Summary Chapter 4n5 - ERD
Summary Chapter 4n5 - ERD
Summary Chapter 4n5 - ERD
(SUMMARY)
ICT501 – DATABASE MANAGEMENT SYSTEMS
Pn Marhainis Jamaludin
Faculty Of Computer And Mathematical Sciences
UiTM Kelantan
Basic Building Blocks of Entity Relationship
Diagram
• Entity – entity set
• Attribute – characteristics of an entity
• Relationship – association between entities
Entity
STUDENT
CAR
PK stuID
PK regNo
owns
Attribute stuName
model Attribute
stuProg
cgpa color
Relationship FK1 stuID
Eg: age
Simple
Attribute
Single-
valued
attribute Eg: icno
Types of
Attribute Create new Relationships
Multi- attributes within Types
Composite the same entity
valued
Attribute
attribute
Create a new
Derived Eg: qualification entity and relate
Eg: icno
Attribute the entity to the
existing entity
with 1:M Cardinality
Eg: age relationship
Calculated from Birth of date Connectivity
Example :
Entity Type and Relationship Strength
*** Database designer determines whether an entity is weak or not based on business rules
Relationship Participation
Mandatory
Optional
Each course may or may not generate a class. Each course may generate at least one class.
Unary
(Recursive)
Unary/Recursive
Examples
Relationship Binary
Degree
Ternary Binary
Ternary
Associative Entities
Need for high processing speed may limit the number and
complexity of logically desirable relationships
Contains unique/specific
characteristics of subtypes
Specialization and Generalization Hierarchy
Specialization Generalization
• Top-down process • Bottom-up process
• Identifies lower-level, more • Identifies a higher-level, more
specific entity subtypes from generic entity supertype from
a higher-level entity lower-level entity subtypes
supertype • Based on grouping common
• Based on grouping unique characteristics and
characteristics and relationships of the subtypes
relationships of the subtypes
Subtype Discriminator
• Is the relationship between subtypes