Construct an E-R diagram for a car insurance company having customers each of which owns one or more cars. Each car has a number of recorded accidents associated with it?
We start by identifying the entities and entity sets.
The entity sets are the rectangles and the attributes are the oval shapes.
We identify the primary key for each entity set:
The primary key attributes are underlined in the diagram.
We identify the relationships and relationship sets.
The following relationships exist:
The above analysis gives rise to the following relationship sets:
The one-to-many relationship is indicated by crow’s feet notation. The many side in the relationship is indicated by the fork end (crow’s feet).