Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dealing with past balances
Message
From
29/07/1998 16:23:04
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00122306
Message ID:
00122478
Views:
23
>>>>Are you saying that I should store the current and past balances in every
>>>>detail record? That's something I hadn't thought of. (Mulling over the
>>>>possibilities...)
>>>Stop mulling right now before you do permanent damage. :-) The answer is no!
>>Why? That's the best solution I've seen so far.
>
>Because if you delete a detail line somewhere, you have to recompute all the balances after it, for example....

I've dealt with this issue before in accounting/financial applications. It's also a major concern in OLAP apps and data-warehousing. The simplist way that I have found to address it is to create a summary table of running balances per month, quarter, year. Every single entry updates (or creates and updates) the summary table entry applicable. In my situation, I was trying to avoid doing million-record SUMs for simple P/L reporting.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform