Re: Storing derived and derivable data
Date: 1 May 2006 06:08:27 -0700
Message-ID: <1146488907.381952.155590_at_e56g2000cwe.googlegroups.com>
dawn wrote:
> Jan Hidders wrote:
> > dawn wrote:
> > > Is there database theory that includes identification of
> > >
> > > 1. the fact that values for an attribute either were or could have been
> > > derived?
> > > 2. how values for an attribute were derived?
> > > 3. how values for an attribute could have been derived?
> >
> > That is usuallly taken care of by specifying the database constraints
> > that define the relationships between the derived column and the other
> > data, and then marking it as either derived or not.
> >
> > This is rather trivial. So I'm wondering if I understood your question
> > correctly.
>
> It is very possible that I'm missing something basic. I know how to
> tie derived data specifications to the stored data from which they are
> derived. Now let's use that derived data to determine a value and
> store it back in an existing base table. Is there a way for the DBMS
> to retain the information about the source of this materialized
> attribute?
> Or said differently, is there a way, other than app or trigger code, to
> tie the materialized version of an attribute to the derived attribute
> from which the value was taken?
> Given that
> the RM has as a goal not to have duplicate data and this is clearly a
> duplication of data, I was thinking this might be one place where the
> application would have the knowledge, rather than the DBMS.
- Jan Hidders