Chapter 4: Entity Relationship Model Flashcards
What is an attribute?
An attribute is a characteristic of an entity. In Chen notation, they are represented by an oval with a line connecting to an entity (rectangle box). For example, an attribute of the entity sandwich would be cheese.
What is a required attribute?
A required attribute means that an entity MUST have an existing attribute or characteristic tied to it. An entity of a student must have a first and last name. In Chen notation they are represented by bold letters.
What is an identifier (Primary Key)?
One or more attributes that uniquely identify an instance of an entity. For example, a car must have a vehicle ID number.
What is a Composite Indentifier?
A primary key that is composed of more than one attribute.
What is a composite and simple attribute?
A composite attribute (NOT A COMPOSITIE IDENTIFIER) is an attribute that could be subdivided into multiple different attributes. A simple attribute is an attribute that can’t be subdivided.
What are single-valued and multi valued attributes?
A single value attribute can only have one value, for example a serial number on a product.
A multi value attribute can have multiple attributes, for example a sweatshirt can be multiple colors.
What are the 3 types of relationships?
M:N = A many to many relationship.
1: N = A 1 to many relationship.
1: 1 = A 1 to 1 relationship
What is a binary relationship?
A relationship that flows BOTH ways. Example a customer may generate an invoices and each invoice was generated by a customer.
What is a cardinality?
The domain of one entities relationship with another entity. For example a college course must have at least 7 students but no more than 21 students.