Chapter 3: ER and EER Models Flashcards
What are the three building blocks of an Entity Relationship Model?
Entity Types, Attribute Types, and Relationship Types
What does ER Model stand for?
Entity Relationship Model
What is an Entity Type?
An entity type is a “thing”, a noun, something that has an unambiguous meaning. Examples include supplier, customer, product, student, etc.
What is the difference between Entity Type and Entity?
An Entity Type is the heading of the table, basically what type of thing (entity) it will contain (ex. Student). An entity is an instance in that table (ex. John Smith)
How is Entity Type depicted in an ER model?
Using a rectangle
What is an Attribute Type?
An attribute type is a property of an entity, it is something about the “thing”. Examples for “Customer” include name, address, customerID, status
How is an Attribute Type depicted in an ER model?
Using an ellipses
What is a Domain?
A Data Domain refers to all the valid values which a data element (column) may contain. You can’t represent domain using an ER model (Ex. gender may only be male or female)
What is a Key Attribute Type?
A Key Attribute Type is used to denote the property that uniquely identifies an entity (customerID), and which is mapped to the Primary Key field in a database
What is the difference between a Simple and Composite Attribute Type?
A Simple Attribute Type cannot be further divided into parts. Examples include supplier numbers or supplier status.
A Composite Attribute Type is one which can be broken down into sup-parts. Examples include address being broken down further into street, number, city, postal code, country, etc.
What is the difference between Single-Valued and Multi-Valued Attribute Types and how are they depicted in an ER model?
A Single-Valued Attribute Type is one that can only have one value, for example, supplierID. A Multi-Valued Attribute Type is one that can have multiple values, for example, multiple email addresses for one supplier.
A Multi-Valued Attribute Type is depicted using a double ellipses
What is a Derived Attribute?
A Derived Attribute is one that is derived from another attribute. An example is Age being derived using the difference between the attribute type Date of Birth and the current date
How is a Relationship Type depicted in an ER model?
Using a rhombus shape (diamond)
What is the Degree of a relationship type?
A Degree is the number of entity types participating in the relationship type
What is Cardinality of relationship types?
Cardinality specifies the minimum or maximum number of relationship instances that an individual entity can participate in