Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dealing with past balances
Message
De
29/07/1998 16:23:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00122306
Message ID:
00122478
Vues:
22
>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform