Ch 4-5 Flashcards
(36 cards)
E-R Model Components
Entities, Attributes, and Relationships
Entities
Refers to the entity set, not an entity occurrence
Entity instance
A row in a table corresponds to it
Rectangle
An entity is represented by it containing the entity’s name
Attributes
Represented by ovals and are connected to the entity with a line
Have a domain-the attribute’s set of possible values
May share a domain
Primary keys are underlined
Simple attribute
Cannot be subdivided
Ex: Age, Sex, and Martial status
Composite Attribute
Can be further subdivided to yield additional attributes
Single-valued attribute
Can have only a single value
Multivalued attribute
Can have many values
Multivalued Attribute in Relational DBMS
Relational DBMS cannot implement multivalued attributes
Derived attribute
Not physically stored within the databases; its value is computed from other attributes
Indicated using a dotted line connecting the attribute with the entity
Relationship
An association between entities
Describes as verbs
Represented by diamond-shaped symbols
Unary Relationship
Exists when an association is maintained within a single entity (Recursive relationship)
Binary Relationship
Exists when two entities are associated (Most common)
Ternary relationship
Three entities participate
Connectivity
Describe the relationship classification
Cardinality
Expresses the specific number of entity occurrences associated with one occurrence of the related entity
Determined by an organization’s business policy
Existence-Dependent
If an entity’s existence depends on the existence of one or more other entities
Dependence
Table can’t exist on its own
Always depend on another entity
Weak Entity
Independence
Table can exist on its own
Strong Entity
Participation
Is optional if one entity occurrence does not require a corresponding entity occurrence in a particular relationship
Optional entity
Shown by small circle on the side of the optional entity
Weak Entity
Existence-dependent on another entity
Has a primary key that is partially or totally derived from its strong counterpart
Indicated by a double rectangle
Strong (Identifying) Relationship
Exists when the PK of the related entity contains a PK component of the parent entity
Crow’s Foot model uses a solid line to connect the two entities