Quantcast
Channel: Relationships and cardinalities for an order-delivery system - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Relationships and cardinalities for an order-delivery system

$
0
0

Currently pilfering through a sample scenario that seems simple but I can't seem to figure it out

Basically, I'm building an entity-relationship diagram for an online clothing store to hold information about customers, orders, deliveries, and products. The entities I have are "customer", "order" (with a unique order number), and "product" as well as "delivery" (unique delivery ID).

From what I gather, customer has a 1:N relationship with order, order has a M:N relationship with product and will be resolved with an appropriate associative entity. However, I'm having some issues seeing how a "delivery" entity would fit. Assuming an order with multiple items can ship each item individually, would a 1:M relationship between order and delivery be appropriate/sufficient?

The diagram is basically [customer - places - order - has - product] and an extra branch off of order where [order - shipped - delivery]

Does this make sense? The scenario gives a generic order form and a receipt for delivery, and wants an ERD that stores info sufficiently to make these two kinds of documents. I feel as if I'm missing something, such as another unspecified entity or a relationship other than the three I have


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images