Database Design Flashcards
Entities, relationships, and attributes. Cardinality. Strong and weak entities. Supertype and Subtypes. Modeling Conventions. (118 cards)
Entity-Relationship Model
High-level representation of data requirements, ignoring implementation details
Entity
Person, place, product, concept or activity
Relationship
Statement about two entities
Attribute
Descriptive property of an entity
Reflexive relationship
Relates to an entity itself
entity-relationship diagram, ER Diagram
schematic picture of entities, relationships, and attributes
Glossary/Data Dictionary/Repository
Documents additional detail in text format
Entity Type
a set of things Ex: All employees in a company.
Relationship Type
Is a set of related things (Employee-Manages-Department is a set of (employee, department) pairs, where the employee manages the department
Attribute Type
Set of values Ex: All employee salaries
Entity Instance
individual thing Ex: The employee Sam Snead
Relationship Instance
Statement about an entity instance Ex: “Maria Rodriguez manages Sales”
Attribute Instance
An individual value Ex: The Salary $35,000
Analysis
Develops an entity-relationship model, capturing data requirements while ignoring implementation details
Logical Design
Converts the entity-relationship model into tables, columns, and keys for a particular database system.
Physical design
Adds indexes and specifies how tables are organized on storage media
Cardinality
Refers to the maxima and minima of relationships and attributes
Relationship Maximum
Greatest number of instances of one entity that can relate to a single instance of another entity
Singular/Plural
Single when the maximum is one and plural when the maximum is many
Relationship Minimum
Least number of instances of one entity that can relate to a single instance of another entity
Optional/REquired
Optional when the minimum is zero and required when the minimum is one.
Attribute Maximum
Greatest number of attribute values that can describe each entity instance. Attribute maximum is usually specified as one singular or many plural
Attribute Minimum
last number of attribute values that can describe each entity instance. Attribute minimum is usually specified as zero or one required.
Unique Attribute
Describes at most one entity instance