| Elmasri/Navathe (3rd) ed. | Kroenke (7th ed.) | McFadden (5th ed.) |
|---|---|---|
| Chapter 3 and 4 | Chapters 3 | Chapters 3 and 4 |
An instance of an entity is like a
specific example:
Bill Gates is an Employee of Microsoft
SPAM is a Product
Greenpeace is an Organization
Flour is an ingredient
Attributes of entity PRODUCT might include:
ProductID
Product_Description
Weight
Size
Cost
Exercise: Come up with a list of attributes for each of the entities above.
Exercise: Choose one of your attributes as the identifier for each of the entities above.
| 1:N | "One to Many" |
| N:M | "Many to Many" |
| 1:1 | "One to One" |
Beware of 1:1 relationships. The two entities involved might be coalesced into one. Also called HAS-A relationship.
Beware of N:M relationships. Typically split these into two 1:N relationships with an intersection entity.
There are a set of tools that can print these "relationship sentences".
It is true: The "Relationships" screen in MS Access is NOT an Entity Relationship diagramming tool. This is a "physical" level diagram of how the tables are actually created.
The above diagram uses the Oracle Designer/2000 symbols for Supertype/Subtype. Below is the same diagram drawn using E-R symbols from the Elmasri/Navathe book.
The d in the circle indicates the subtype entity is distinct. Only one subtype entity can participate in an instance.
As before, the double line between the Call entity and the d in the circle indicates the relationship is mandatory.
| Elmasri/Navathe | Kroenke | McFadden |
|---|---|---|
| Chapter 9 - Section on Converting ER and EER to relational models | Chapter 6 | Chapter 6 and Appendix B |
| [Last Week] | [Home] | [Next Week] |