hi,
I'm designing a purchasing system.
i have an orders and order details table.
In the order table I need a ship to address.
I have to options:
1.I can use a foreign key AddressID to reference an address in the Address table. The problem with this is if some one changes the address after an order ha been places and shipped we will loose the info on the ship to address for the order already shipped. In other words, if an old order is referencing an address that has recently been changes and we view that order it will show the new address not the address that was actually shipped to.
2.Insert the address data directly. Denormalize the address.
What is the industry standard for this?
I'm designing a purchasing system.
i have an orders and order details table.
In the order table I need a ship to address.
I have to options:
1.I can use a foreign key AddressID to reference an address in the Address table. The problem with this is if some one changes the address after an order ha been places and shipped we will loose the info on the ship to address for the order already shipped. In other words, if an old order is referencing an address that has recently been changes and we view that order it will show the new address not the address that was actually shipped to.
2.Insert the address data directly. Denormalize the address.
What is the industry standard for this?