Auto >> AutoSPT >  >> Car Photos

How do you draw a ER diagram for an automobile industry?

ER Diagram for Automobile Industry

[Image of an ER diagram for an automobile industry]

Entities:

* Car: This entity represents a car. Each car has a unique car ID, make, model, year, color, and price.

* Manufacturer: This entity represents a car manufacturer. Each manufacturer has a unique manufacturer ID, name, and address.

* Dealer: This entity represents a car dealer. Each dealer has a unique dealer ID, name, and address.

* Customer: This entity represents a customer who has purchased or is interested in purchasing a car. Each customer has a unique customer ID, name, address, and phone number.

* Order: This entity represents an order for a car. Each order has a unique order ID, customer ID, car ID, dealer ID, and date.

Relationships:

* Car is manufactured by Manufacturer: This relationship represents the fact that a car is manufactured by a particular manufacturer.

* Car is sold by Dealer: This relationship represents the fact that a car is sold by a particular dealer.

* Customer places Order for Car: This relationship represents the fact that a customer places an order for a car with a particular dealer.

Cardinalities:

* One car is manufactured by one Manufacturer: This cardinality indicates that each car is manufactured by exactly one manufacturer.

* One car is sold by one Dealer: This cardinality indicates that each car is sold by exactly one dealer.

* One Customer can place many Orders: This cardinality indicates that each customer can place multiple orders.

* One Order is placed by one Customer: This cardinality indicates that each order is placed by exactly one customer.