Appendix C Flashcards
Entity Relationship Diagram ERD
A technique for documenting the relationship between entities in a database environment.
Entity- Also called a table
Stores information about a person, place, thing, transaction, or event
–a customer is an entity and so is a merchandise item
Attribute
Data elements associated with an entity.
–A customer entity can be described by attributes such as: customer number, first name, last name, street, city, state, zip, phone number
There Are Several categories of attributes including: 4 total
1) Simple versus composite
2) Single-Valued versus multi-valued
3) Stored Values derived
4) Null-Valued
Composite Attributes **
Can Be Divided into smaller sub parts, which represent more basic attributes that have their own meanings.
Example: Address – broken down into a number of sub parts, such as number, street, city, & state.
Attributes that are not divisible into sub parts are called simple attributes. Such as age, gender,
Single Valued Attribute
Means only having only a single value of each attribute of an entity at any given time.
Example: A CUSTOMER entity allows only once Telephone Number for each CUSTOMER.
Multi-Valued Attribute
Means having the potential to contain more than one value for an attribute at any given time.
TEST QUESTION****
An entity in a relational database cannot have multi-valued attributes. ***
Relational Databases do not allow multi-valued attributes because the can cause problems:
1) Confuses the meaning of data
2) Significantly slow down searching
3) Place unnecessary restrictions on the amount of data that can be stored.
Derived Attributes
Can be calculated using the value of another attribute (attribute that is used to derive the attribute is called a stored attribute)
-Derived attributes are not stored, but can be derived when needed from stored attributes.
Null-Valued-Attribute
Assigned to an attribute when no other value applies or when a value is unknown.
ONce the basic entities and attributes have been defined, the next task is to identify the relationships among entities.
The Three Basic Types of relationships:
1) one-to-one
2) one-to-many
3) many-to-many
Composite Entities
Entities that exist to represent the relationship between two other entities.
Example: There is a many-to-many relationship between an ITEM and ORDER. *An order can contain many items and over time, the same item can appear on many ORDERs.