Hi there, I'm trying to create a simple shop database, which can hold the following info...
- Products
- Customer details
- Orders
I can't seem to get my head around how I can store more than one product_id (and its quantity) in a orders record without using another table.
So I'd have a orders table, with a order_id for each record, which would be linked to a orderdetails table. Each record in the orderdetails table would hold the order_id it was for, the product_id and quantity ordered.
I hope this makes sense to someone as I'm a bit confused now

.
Any advice would be great - thanks.