Chapter 4 Flashcards
(40 cards)
ERM forms…
The basis of an entity relationship diagram (ERD)
-Conceptual database as viewed by the end user.
Database main components
-Entities
-Attributes
-Relationships
Entities
Object of interest to the end user
-Refers to the entity set and not to a single entity occurrence.
ERM corresponds to…
A table in the relational environment
Entity in Chen, Crow’s foot and UML
An entity is represented by a rectangle that contains the entity’s name.
-usually written in all capital letters.
Characteristics of Entities
-Required attribute
-Optional attribute
-Domain
-Identifier (PK)
Required attribute
An entity must have a value and cannot be empty.
Optional attribute
Does not require a value and can be left empty.
Domain
A set of possible values for a given attribute.
Identifier (PK)
One or more attributes that uniquely identify each entity instance.
More characteristics of entities
-Composite identifier
-Composite attribute
-Simple attribute
-Single-valued attribute
-Multivalued attributes
Composite identifier
Primary key composed of more than one attribute
Composite attribute
Attribute that can be subdivided to yield additional attributes.
Simple attribute
Attribute that cannot be subdivided.
Single-valued attribute
Attribute that has a single value.
Multivalued attributes
Attributes that have many values.
Requirements of multivalued attributes
-Create several new attributes, one for each component of the original multivalued attribute
-Develop a new entity composed of the original multivalued attribute’s components.
Derived attribute
Attribute whose value is calculated from other attributes (derived using an algorithm).
Advantage of storing a derived attribute
-Saves CPU processing cycles
-Saves data access time
-Data value is readily available
-Can be used to keep track of historical data
Disadvantages of storing derived attributes
-Requires constant maintenance to ensure derived value is current, especially if any values used in the calculation change.
Advantage of not storing derived attributes
-Saves storage space
-Computation always yields current value
Disadvantage of not storing derived attribute
-Uses CPU processing cycles
-Increases data access time
-Adds coding complexity to queries.
Participants
Entities that participate in a relationship
Connectivity
Describes relationship classification (1:1, 1:M, etc)