I am having problems with a system for lending products.
I have created two tables, one for a new order containing customer name, order no. and booking date. In the other tables I have the products.
Now, my problem is this:
Each order can contain several products, but each product can also be booked in several orders but not at the same time of course.
I started out by trying to add the order no. to the products table, but that works only if the product is booked on one single order. I need to be able to have several bookings for the same product. At the same time, I need to be able to stop several orders of the same product on the same day...
Any suggestions on where to start? Do I need an extra table containing the orders connected to the products?
I have created two tables, one for a new order containing customer name, order no. and booking date. In the other tables I have the products.
Now, my problem is this:
Each order can contain several products, but each product can also be booked in several orders but not at the same time of course.
I started out by trying to add the order no. to the products table, but that works only if the product is booked on one single order. I need to be able to have several bookings for the same product. At the same time, I need to be able to stop several orders of the same product on the same day...
Any suggestions on where to start? Do I need an extra table containing the orders connected to the products?