![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to ask a simple question: I am doing a database project which involves a lot of tables, in which two are product table and order item table. Products are selected from the product table when an order item is created in the order item table. However this brings a problem when some of the product details needs to change daily. Doing this will change old order item details as the two tables are just related by product ID. I have heard two solving approaches: One is to decrease the relations of the two tables, when the product is selected from the product table, just copy all the information required by the order item table. |
|
The second is to set a flag in the product table to disable it and create another product record for new order items. However, the disadvantage of this method is bring a little trouble to the user to create new product record. |
|
I want to ask what is the most usual method to implement the product changing? |
#3
| |||
| |||
|
|
I want to ask a simple question: I am doing a database project which involves a lot of tables, in which two are product table and order item table. Products are selected from the product table when an order item is created in the order item table. However this brings a problem when some of the product details needs to change daily. Doing this will change old order item details as the two tables are just related by product ID. I have heard two solving approaches: One is to decrease the relations of the two tables, when the product is selected from the product table, just copy all the information required by the order item table. |
|
The second is to set a flag in the product table to disable it and create another product record for new order items. However, the disadvantage of this method is bring a little trouble to the user to create new product record. |
|
I want to ask what is the most usual method to implement the product changing? |
#4
| |||
| |||
|
|
I want to ask a simple question: I am doing a database project which involves a lot of tables, in which two are product table and order item table. Products are selected from the product table when an order item is created in the order item table. However this brings a problem when some of the product details needs to change daily. Doing this will change old order item details as the two tables are just related by product ID. I have heard two solving approaches: One is to decrease the relations of the two tables, when the product is selected from the product table, just copy all the information required by the order item table. The second is to set a flag in the product table to disable it and create another product record for new order items. However, the disadvantage of this method is bring a little trouble to the user to create new product record. I want to ask what is the most usual method to implement the product changing? |
#5
| |||
| |||
|
|
I want to ask what is the most usual method to implement the product changing? |
![]() |
| Thread Tools | |
| Display Modes | |
| |