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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update/Refresh stratergy

Status
Not open for further replies.

coolspartan

Programmer
Oct 21, 2004
7
US
Hello Gurus,
I have a requirement for an aggregate table loading by week. The requirement specifies that the aggregations should be calculated for a week, every week. And every week the previous weeks should be refreshed as records for the previous weeks change. My question is.... should I delete all the records from previous weeks and calculate and populate them again? Or should I treate rows as "update" in the source and load them by treating them "update else insert" in the target? Or is there any other way that I should procede to fulfill this requirement.

Thanks in advance,
Spartan
 
Regular approach for aggregate tables is to rebuild them again, especially if older data can still change.
Imagine that certain changes would cause a specific key to dissappear in the output. This will never be properly handled with an update strategy that you decribe.....

Ties Blom
Information analyst
tbl@shimano-eu.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top