1801198_Tutorial 1_Matthew Lewis Database Design
1801198_Tutorial 1_Matthew Lewis Database Design
5.
Entity: Person
Name (Atomic Attribute)
Date of Birth (Atomic Attribute)
Contact Numbers (Multi-Valued Attribute)
Address (Composite Attribute: Street, City, Zip Code)
6.
Entities:
Customer
Relationships:
Customer owns Car
Type: One-to-Many (A customer can own multiple cars, but a car is owned by one customer)
Foreign Key: CustomerID in Car entity
Car has Accidents
Type: Many-to-Many (A policy can cover multiple cars, and a car can be covered by multiple
policies)
Associative Entity: CoveredBy
Attributes in CoveredBy: CoverageID (Primary Key), PolicyID (Foreign Key), CarID (Foreign
Key)
Policy has Premium Payments