Topic 4: Entity Relationship (ER) Modeling Flashcards
It forms the basis of an ERD
Entity Relationship Model
It refers to attributes that must have a value at the time the instance is added. Null is not allowed
Required Attributes
It is an attribute that allows to be left empty at the time the instance is added
Optional Attribute
It refers to the set of possible values that an attribute can contain
Domains
It refers to an attribute or set of attributes taht is used to differentitate one entity instance from another
Identifiers (Primary Keys)
It refers to a primary key that is composed of more than one attribute
Composite Identifiers (Composite Keys)
It is an attribute that can be subdivided into new several attributes
Composite Attributes
It refers to an attribute that cannot be subdivided into several new attributes
Simple Attributes
It is an attribute that can have a single value
Single-valued attributes
it refers to attributes that can have many values
Multivalued Attributes
How to implement multi-valued attributes?
- Creating several new attributes for the multi-valued attribute
- Create a new entity of the original multivalued attributes
It is an attribute whose value is calculated from other attributes
Derived Attributes
Advantages of Storing a Derived Attribute
- Saves CPU Processing Cycles
- Saves data access time
- Data value is readily available
- Can keep track of historic data
Disadvantages of Storing Derived Attributes
- Requires constant maintance to ensure derived value is current
Advantages of Not Storing Derived Attributes
- Saves storage space
- Computation always yields current value