tad hard regarding the foreign key setup.could some explain pls?
I think it would be an N:N relationship, after all 1 customer can place 1 order with multiple products and 1 product can be sold in multiple orders by multiple customers. So Customer N:N with products and orders is the "join" table.
generally there are masters of product and customers,order entry has a customer and multiple products, a customer can have multiple order entries, and one order entry can have multiple products customer -> order 1 -> (p1,p2..) order2 -> (p1,p2)
Обсуждают сегодня