🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #383

Re: cumulative balance field

#383
From: Bill Todd [TeamB]
Date: Thu, 08 May 2008 18:32
14 lines
1581 bytes
WillR wrote:

> If a cumulative balance is required -- I would suggest a stored
> procedure which runs a calculation routine on demand. It is
> procedural/sequential after all.

Good idea. If the user needs to edit the data on a form where the
running balance is displayed you could select from a stored procedure
in a view then add triggers to the view to handle the updates. Since
the balance is recalculated each time the stored procedure is called it
will always be correct.

-- 
Bill Todd (TeamB)
Technical Details
Message-ID: <48234755$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4822380f@newsgroups.borland.com> <482246d0$1@newsgroups.borland.com> <48231e5b$1@newsgroups.borland.com> <48233ade@newsgroups.borland.com> <482340ba$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,7fe0f2b0b1ac1758
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bill Todd [TeamB]" <no@no.com>
Subject: Re: cumulative balance field
Newsgroups: borland.public.interbase.sql
References: <4822380f@newsgroups.borland.com> <482246d0$1@newsgroups.borland.com> <48231e5b$1@newsgroups.borland.com> <48233ade@newsgroups.borland.com> <482340ba$1@newsgroups.borland.com>
Organization: The Database Group, Inc.
User-Agent: XanaNews/1.18.1.9
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 65.118.176.23
Message-ID: <48234755$1@newsgroups.borland.com>
Date: 8 May 2008 11:32:53 -0700
X-Trace: newsgroups.borland.com 1210271573 65.118.176.23 (8 May 2008 11:32:53 -0700)
Lines: 14
X-Authenticated-User: btodd
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail