Running Head: E-R DIAGRAM 1
Running Head: E-R DIAGRAM 1
CS 3306: Databases 2
E-R DIAGRAM 2
CAR_RELATION
Car_License: Interger
Person_ID: Integer
Model: String
Year: Integer
PERSON_RELATION
Person_ID: Integer
CAR-ACCIDENT
First_Name: String
Accident_ReportID: Integer
Last_Name: String
Car_License: Interger
Address_Street: String
Address_Number: Integer
ACCIDENT_RELATION
Accident_ReportID: Integer
Accident_Location: String
Accident_Date: Date
Estimated_Cost: Float
As requirements, customer (PERSON) and car, car and accident relationship is one-to-many. It
was necessary to establish a CAR-ACCIDENT and ACCIDENT buffer relationship entity. There
is a unique Accident Report ID for each unique car (by car license), which in turn has all the
information for each accident and can be assigned to the same car for multiple accidents.
E-R DIAGRAM 3
This arrangement fulfills the requirement to provide, by separating the agency, "zero or any"
number of incidents assigned to each vehicle. There is no Car License as a Foreign Key in the
Reference
Silberschatz, A., Korth, H.F., & Sudarshan, S. (2001). Database System Concepts (4th ed.). New
Silberschatz-Korth-Sudarshan.pdf