ER Flashcards
Attributes
Property of an entity
Entity
A collection of attributes
Domain
Set of values for an attribute
Multi-valued Attribute
A list of attributes {7734, Plumb Rd, Galena, Oh, 43021}
Composite Attribute
An organized list of attributes {Name} -> {Gabe, Steppers}
Derived Attributes
Not stored, but calculated on request
Cardinality
Relationships:
1:1, 1:n, m:n
Employee –N– —–1—- Project
The project can have many employees.
The employee can have one project.
Total Participation
Means that the entity MUST be present.
For Chen Notation this is represented by double lines on the side of participation (opposite of carnality)
Weak Entities
Cannot be identified on their own, dependent on a strong entity. Can have partial keys.
Binary Relationship
Employee —-n—– ——1—— Project
Single mapping between employee and project
Ternary Relationship
Employee —-n—— ——1—–Project
|
|
|
Salary
More thing two mappings in a relationship, should be shied away from