Subscribe
Notify of
5 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
TechPech1984
2 years ago

A customer (ID, name) can have many orders

An order (ID, CustomerID, OrderDate, InvoiceDate, PaymentReceipt) has exactly one customer but many models

A model (ID, name) can be present in many orders and has many components.

One component (ID, designation) can be used in many models

In relational databases, an auxiliary table is now always required for n:m relationships.

So many to many requires an extra table.

Order model (OrderID, ModelID, OrderQuantity, Deadline)

Model component (ModelID, ComponentID, ComponentQuantity)

TechPech1984
2 years ago
Reply to  LeventY1

You don't have to, but you can. It's usually better if you want to edit the entries.

TechPech1984
2 years ago

Congratulations!!!!! but give me a star for my answer 😉