Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Method for Archiving Data

Status
Not open for further replies.

dragongunner0351

Programmer
Mar 16, 2006
104
US
Hello All,
I have a DB that mimics a CRM to some extent, the area for this question I am most intrested in is in the inventory portion of the DB. Throughout the year pricing changes. For the industry I work in sometimes monthly if not weekly, at times depending on the Asian markets we have seen prices change daily, however that has happened twice in four years.

My question is what is the best way to archive previous pricing. I was thinking of creating a separate tbl to hold just archived pricing, but I have a lot of gray area in regards to how to populate the tbl, when and what method to trigger the population.

I hope I am not to vague here, and any contributions will be greatly appreciated.

Best regards
 
I guess you are not in the oil business.[2thumbsup] How do you currently handle pricing changes?
If I was doing this, I would have a table for pricing with ProductID, EffectiveDate and Price. When a price changes for a product, you enter the ProductID, new date and new price into the table. Then use a query that takes the latest price for your products from the table based on the EffectiveDate and tie that to your other data using the ProductID. Essentially you never have to archive your pricing.

Paul

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top