N
NNlogistics
I have a retail related DB and I realize that may not have thought through
some design elements. It involves orders. I have an Order Table, A Order
Detail Table, Customer Table and a Products Table. Current orders are not a
problem, however past orders are in this repect - pricing-. If a price
change has occurred since the order was entered and a customer calls and ask
for a copy of the invoice, it will show the current price. Come to think of
it, if any info in the Customer Table has changed , it will also show the
current info.
The problem, I believe, is in the initial design, I didnt think it through.
How does one in general keep a history without vilating every "Normalization"
rule? My temporary fix is to save an .snp of the invoice on the same sever
on the back end, giving it a name that has the Order #, first few Customer
characters and the date.
Any advise would be appreciated
--
some design elements. It involves orders. I have an Order Table, A Order
Detail Table, Customer Table and a Products Table. Current orders are not a
problem, however past orders are in this repect - pricing-. If a price
change has occurred since the order was entered and a customer calls and ask
for a copy of the invoice, it will show the current price. Come to think of
it, if any info in the Customer Table has changed , it will also show the
current info.
The problem, I believe, is in the initial design, I didnt think it through.
How does one in general keep a history without vilating every "Normalization"
rule? My temporary fix is to save an .snp of the invoice on the same sever
on the back end, giving it a name that has the Order #, first few Customer
characters and the date.
Any advise would be appreciated
--