Re: database integrity
Date: Wed, 25 May 2005 06:42:00 GMT
Message-ID: <Y6Vke.383$BR4.211_at_news-server.bigpond.net.au>
"Kenneth Downs" <knode.wants.this_at_see.sigblock> wrote in message
news:8icam2-fuv.ln1_at_pluto.downsfam.net...
> mountain man wrote:
>
>> "Jan Hidders" <jan.hidders_at_REMOVETHIS.pandora.be> wrote in message
>> news:K%6je.95748$hi2.5651565_at_phobos.telenet-ops.be...
>>> Kenneth Downs wrote:
>>>>
>>>> One question on my mind is the change in rules over time. Do we say:
>>>>
>>>> 1. Data is valid if it adheres to all existing biz rules, OR:
>>>> 2. Data is valid if it adheres to rules that were in force when it was
>>>> inserted or updated.
>>>
>>> Very interesting question. I would say that it is the simplest to let
>>> the
>>> static database constraints be applicable for all the data, and if you
>>> want to restrict what can be added (or deleted or updated) then you use
>>> dynamic database constraints (or transition constraints, as they are
>>> also
>>> called) to specify that.
>>
>> Additionally, in more complex change, the retrospectively entered
>> data may need to be addressed and essentially "converted" to conform
>> to the implementation of new rules. This conversion will be a once
>> off update of the data, to get it to conform to new rules.
>>
>
> Can we tie this to some examples?
>
> Here is my example. The column "VAT" is added to orders. In
> down-to-earth
> terms, we are going to add a column to a table. What do you assign as a
> value for existing orders?
NULL if it is prior to the effective (legislated) implementation date for the VAT. Other processes associated with VAT would need to be prefaced with DATE => implementation.
Pete Brown
Falls Creek
Oz
www.mountainman.com.au
Received on Wed May 25 2005 - 08:42:00 CEST