Exam 1-Chapter 4 Flashcards
The Entity Relationship Model (ERM)
- ERD represents conceptual database as viewed by end user
- ERDs depict database’s main components: entities, attributes, relationship
Entities
Refers to eneity set and not to a single entity occurrence; corresponds to table and not to row in relational environment; in Chen and Crow’s Foot models, entity is represented by rectangle with entity’s name; entity name, a noun, written in capital letters
Attirbutes
Characteristics of entities; Chen notation; attributes represented by ovals connected to entity rectangle with a line (each oval contains the name of attribute it represents; Crow’s Foot notation: attributes written in attribute box below entity rectangle
Required Attribute
Must have a value’ boldfaced in Crow’s Foot notation
Optional Attribute
May be left empty
Domain
Set of possible values for an attribute; attributes may share a domain
Identifiers (Primary Keys)
One or more attributes that uniquely identify each entity instance; boldfaced and underlined in the table structure
Compostie Identifer
Primary key composed fo more than one attribute
Composite Attribute
Can be subdivided
Simple Attribute
Cannot be subdivided
Single-Value Attribute
Can have only a single value
Multivalued Attributes
Can have many values (double lines in the Chen ERM; Not identified in Crow’s Foot)
M:N relationships and multivaled attributes should not be implemented in the RDBMS
Derived (Computed) Attribute
Vale may be calculated from otehr attributes; need not be physically stored within database
Relationships
Association between entities; Participants are entities that participate in a relationship; relationship name is a verb; relationships between entities always operate in both directions
Connectivity
Describes the relationship classification (type)