4. Database Design Flashcards
entity-relationship model
An entity-relationship model is a high-level representation of data requirements, ignoring implementation details.
entity
A person, place, product, concept, or activity.
relationship
a statement about two entities.
attribute
descriptive property of an entity.
reflexive relationship
A reflexive relationship relates an entity to itself.
entity-relationship diagram / ER diagram
An entity-relationship diagram, commonly called an ER diagram, is a schematic picture of entities, relationships, and attributes.
glossary / data dictionary / repository
A glossary, also known as a data dictionary or repository, documents additional detail in text format.
entity type
An entity type is a set of things. Ex: All employees in a company.
relationship type
A relationship type is a set of related things. Ex: Employee-Manages-Department is a set of (employee, department) pairs, where the employee manages the department.
attribute type
An attribute type is a set of values. Ex: All employee salaries.
entity instance
An entity instance is an individual thing. Ex: The employee Sam Snead.
relationship instance
A relationship instance is a statement about entity instances. Ex: ‘Maria Rodriguez manages Sales.’
attribute instance
An attribute instance is an individual value. Ex: The salary $35,000.
Analysis
Analysis develops an entity-relationship model, capturing data requirements while ignoring implementation details.
Logical design
Logical design converts the entity-relationship model into tables, columns, and keys for a particular database system.
Physical design
Physical design adds indexes and specifies how tables are organized on storage media.
cardinality
In entity-relationship modeling, cardinality refers to maxima and minima of relationships and attributes.
Relationship maximum
Relationship maximum is the greatest number of instances of one entity that can relate to a single instance of another entity.
singular / plural
A related entity is singular when the maximum is one and plural when the maximum is many.
Relationship minimum
Relationship minimum is the least number of instances of one entity that can relate to a single instance of another entity.
optional / required
A related entity is optional when the minimum is zero and required when the minimum is one.
Attribute maximum
Attribute maximum is the greatest number of attribute values that can describe each entity instance. Attribute maximum is usually specified as one (singular) or many (plural).
Attribute minimum
Attribute minimum is the least number of attribute values that can describe each entity instance. Attribute minimum is usually specified as zero (optional) or one (required).