GPT E/R Model Flashcards
Who developed the E/R model and what is its purpose?
Peter Chen in 1976 for conceptual database design using graphical representation
What are the core constructs of the E/R model?
- Entity
- Relationship
- Attribute
Entity
Class of objects with common properties and unique name
Relationship
Logical link between two or more entities
STUDENT “attends” COURSE
Attribute
Propoerties of entities or relationships
Name, BirthDate, etc.
Cardinality constraints
Rules specifying minimum and maximum participation in relationships or attributes
Why attributes too? Well we have recursive relationships?
Weak entity
An entity that depends on another entity for identification
Primary key the foreign key
Order Item is a weak entity to Order for example
Composite attributes
Aggregate of multiple attributes
City + Street = Address
Recursive relationships
Entity relates to itself
PERSON “friends” PERSON
Generalization in the E/R Model
A hierarchy where child entities inherit properties from a parent entity.
Data Dictionary
Documentation of entities, relationships, and their attributes with descriptions
Two types of E/R notations
DB-Main and Crow’s Foot
Main limitations of E/R model
- Cannot express all integrity constraints
- Requires additional documentation to bridge design gaps
How is E/R model used in reverse engineering?
To analyze and redesin existing databases lacking conceptual-level documentation
Ternary relationship
A relationship involving three entities