Chapter 4 and 5 Summary
Chapter 4 and 5 Summary
Chapter 4 summary
ER model stands for an Entity-Relationship model. This model is used to define the data
elements and relationship for a specified system.
It develops a conceptual design for the database. It also develops a very simple and easy to
design view of data.
Attribute-characteristics of entities.
Types of attributes
Cardinality- expresses the minimum and maximum number of entity occurrence associated with one occurrence of
the related entity.
Existence dependence
Existence dependence – occurs when an entity is associated with another entity occurrence
Existence independence – occurs when an entity is existing apart from all of its related entities. It is also called
strong or regular entity.
Relationship strength
Relationships are the glue that holds the tables together. They are used to connect related information
between tables.
Relationship strength is based on how the primary key of a related entity is defined.
A weak, or non-identifying, relationship exists if the primary key of the related entity does not contain a
primary key component of the parent entity
A strong, or identifying, relationship exists when the primary key of the related entity contains the
primary key component of the parent entity
Relationship participation
Optional relationship- one entity occurrence does not require the corresponding entity occurrence in
particular relationship.
Mandatory relationship- one entity occurrence requires the corresponding entity occurrence in a
particular relationship.
Relationship Degree
Ternary relationship: a relationship type that involves many to many relationships between
three tables.
Binary relationship: occurs when two entities are associated in a relationship
Unary relationship: one in which a relationship exists between occurrences of the same entity
set.
Recursive relationship- is one in which relationships can exist between occurrence of the same
entities.
Design standards- the database design must conform to the to the design standards
Processing speed- the processing speed must be higher to minimize access time
Information requirements
Chapter 5
Extended entity relationship model
Result of adding more semantic constructs to original entity relationship (ER) model
Diagram using this model is called an EER diagram (EERD)
Entity supertype: -Generic entity type related to one or more entity subtypes
Specialization Hierarchy
Inheritance
Subtype Discriminator
Disjoint subtypes – Also known as non-overlapping subtypes – Subtypes that contain unique
subset of supertype entity set
Overlapping subtypes – Subtypes that contain nonunique subsets of supertype entity set
Completeness Constraint
Specifies whether entity supertype occurrence must be a member of at least one subtype
Partial completeness – Symbolized by a circle over a single line – Some supertype occurrences
that are not members of any subtype
Total completeness – Symbolized by a circle over a double line – Every supertype occurrence
must be member of at least one subtype
Specialization
Generalization
Entity Clustering
“Virtual” entity type used to represent multiple entities and relationships in ERD
Considered “virtual” or “abstract” because it is not actually an entity in final ERD
Temporary entity used to represent multiple entities and relationships
Eliminate undesirable consequences – Avoid display of attributes when entity clusters are used
Primary key most important characteristic of an entity – Single attribute or some combination of
attributes
Primary key’s function is to guarantee entity integrity
Primary keys and foreign keys work together to implement relationships
Properly selecting primary key has direct bearing on efficiency and effectiveness
Natural key is a real-world identifier used to uniquely identify real-world objects – Familiar to
end users and forms part of their day-to-day business vocabulary
Where each primary key combination allowed once in M:N relationship – As identifiers of weak
entities Where weak entity has a strong identifying relationship with the parent entity
Automatically provides benefit of ensuring that there cannot be duplicate values
Design Cases