| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Normalization and Derived Information
Bill H wrote:
> Kenneth:
>
> "Kenneth Downs" <firstinit.lastname_at_lastnameplusfam.net> wrote in message
> news:8nhbkc.5d7.ln_at_mercury.downsfam.net...
>> Bill H wrote: >> >> > There are some excellent reasons for storing calculated values;
>> > in accounting and other money handling applications. In fact, one >> > might even go so far as to state it is advisable to maintain duplicate >> > data in order to effectuate financial error control. >> > >> >> Yes, my final fallback is the audit trail. Seeing each column in a chain
>> calculations gives the auditors the warm-fuzzies, they hate it when you >> tell them, "Oh, the gross profit calc is OK, trust me." If I can make >> the customer happy and guarantee correctness, I'll do it and leave the >> quetion >> of theory to another day. In this particular response to Mr. Celko
>> I am pretending that I never want to materialize anything, and trying to >> pursue that through to its final endpoint so that I can discover anything >> I've missed by materializing all these years.
Well, there are four kinds of derivations I've defined for my own use, aggregates are only one of them. I define them as:
A summary table, such as a sum of dollar sales by customer and item would require the extra table you describe, so an AGGREGATE may require a new table, but maybe it does not.
Also, you do not have to denormalize to make use of these, a data dictionary can store formulas of this form and generate view definitions. The problem with doing them as views is that you end up with some staggeringly complex view that become impossible to inspect visually, and you can end up with circular view references if you are not careful.
-- Kenneth Downs Use first initial plus last name at last name plus literal "fam.net" to email meReceived on Sun Oct 10 2004 - 16:22:23 CDT
![]() |
![]() |