I have an order table that is an order for a customer. I need to reference as a foreign key an unknown number of products that could make up the order (product_id) how do I do this? What am I missing. I set up an intermediary table between ORDER and PRODUCTS but I can't wrap my head around what the composite key should be since I can't use Order_id as part of it (cause it would still be many to many) right now I have order_id, quantity, and price... what am I missing so that I only have known quantity in the database?
Or should I just have a column "product_ids" and do a comma separate list of product_id (array style)
thanks
-zone
Or should I just have a column "product_ids" and do a comma separate list of product_id (array style)
thanks
-zone
