× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



lgoodbar@xxxxxxxxxxxxxx wrote:
No real issues with what you propose. One thing database purists go on
about is "do not store calculated fields in a table". Just as you
describe, keeping itdlr7 correct can be difficult.
Just the phrase "database purist" makes me itch <grin>.

Seriously, though, there are valid cases for storing derived fields. We called this "strategic denormalization" back in the day. A perfect example is storing the total amount for an order. Yes, you can calculate it every time by adding the total amount of every line and the total tax and total freight, but in an order with hundreds of line items, that's not exactly a good thing, especially since it's a value that displayed often and even sorted on.

Not quite the issue here - this is a point-in-time calculation like the BPCS onhand inventory. However, you have to ask yourself how many times a given price will be read vs. the number of time the price is changed. The only rule in database design is that all rules depend on the business requirement.

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.