ERD Modelling - Coronel, Rob
ERD Modelling - Coronel, Rob
Chapter 4
Database Systems:
Design, Implementation, and Management,
Seventh Edition, Rob and Coronel
1
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 2
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 3
4
Entities
Attributes
• Characteristics of entities
• In Chen model, attributes are represented by
ovals and are connected to entity rectangle with
a line
• Each oval contains the name of attribute it
represents
• In Crow’s Foot model, attributes are written in
attribute box below entity rectangle
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 5
4
Attributes (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 6
4
Domains
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 7
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 8
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 9
4
Composite Primary Keys (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 10
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 11
4
Single-Valued Attributes
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 12
4
Multivalued Attributes
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 13
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 14
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 15
4
Resolving Multivalued Attribute Problems
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 16
4
Resolving Multivalued Attribute Problems
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 17
4
Resolving Multivalued Attribute Problems
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 18
4
Derived Attributes
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 19
4
Derived Attributes (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 20
4
Derived Attributes (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 21
4
Relationships
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 22
4
• Connectivity
– Used to describe the relationship classification
• Cardinality
– Expresses minimum and maximum number of
entity occurrences associated with one
occurrence of related entity
• Established by very concise statements
known as business rules
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 23
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 24
4
Existence Dependence
• Existence dependence
– Exist in database only when it is associated
with another related entity occurrence
• Existence independence
– Entity can exist apart from one or more related
entities
– Sometimes refers to such an entity as strong
or regular entity
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 25
4
Relationship Strength
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 26
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 27
4
Weak (Non-Identifying)
Relationships (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 28
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 29
4
Weak Entities
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 30
4
Weak Entities (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 31
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 32
4
Relationship Participation
• Optional participation
– One entity occurrence does not require
corresponding entity occurrence in particular
relationship
• Mandatory participation
– One entity occurrence requires corresponding
entity occurrence in particular relationship
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 33
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 34
4
Relationship Participation (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 35
4
Relationship Participation (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 36
4
Relationship Participation (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 37
4
Relationship Degree
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 38
4
Relationship Degree (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 39
4
Relationship Degree (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 40
4
Recursive Relationships
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 41
4
Recursive Relationships
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 42
4
Recursive Relationships
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 43
4
Recursive Relationships
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 44
4
Recursive Relationships
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 45
4
Recursive Relationships
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 46
4
Recursive Relationships
(continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 47
4
Composite Entities
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 48
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 49
4
Composite Entities (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 50
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 51
4
Developing an ER Diagram
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 52
4
• Tiny College
– Tiny College is divided into several schools
• Each school is composed of several departments
– Each department may offer courses
– Each department may have many professors assigned to
it
– Each professor may teach up to four classes; each class
is section of course
– Student may enroll in several classes, but (s)he takes
each class only once during any given enrollment period
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 54
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 55
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 56
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 57
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 58
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 59
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 60
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 61
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 62
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 63
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 64
4
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 65
4
Developing an ER Diagram (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 66
4
Database Design Challenges:
Conflicting Goals
• Database design must conform to design
standards
• High processing speeds are often a top
priority in database design
• Quest for timely information might be focus of
database design
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 67
4
Database Design Challenges:
Conflicting Goals (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 68
4
Summary
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 69
4
Summary (continued)
Database Systems: Design, Implementation, & Management, 7th Edition, Rob & Coronel 70