You are on page 1of 4

CASE STUDY DESCRIPTION:

To design an Entity-Relationship (ER) diagram for a car insurance company with customers who own
one or more cars, and each car can have zero to many recorded accidents, we can identify the
following entities, relationships, and attributes:

Entities:
1. Customer

2. Car

3. Accident

4.Policy

Attributes:
1. Customer:

 Customer ID (Primary Key)


 Name
 Address
 Phone
 Email

2. Car:

 Car ID (Primary Key)


 Make
 Model
 Year
 License Plate

- VIN (Vehicle Identification Number)

3. Accident:

 Accident ID (Primary Key)


 Date
 Location
 Description

4. Policy

 Policy number
 Amount
 Validity
ENTITIES RELATIONSHIP DESCRIPTION

Relationships:
1. Owns (between Customer and Car):

 Each Customer can own one or more Cars.


 Each Car is owned by one Customer.

2. Has (between Car and Policy):

 Each Car can have zero to one policy.


 Each policy is associated with one Car.

3.Associated with (between Car and Accident)

 Each car can have zero to many recorded accidents.


 Each accident is associated with one car.
E-R DIAGRAM:
RELATIONAL TABLE:

You might also like