Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6795695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:22:40+00:00 2026-05-26T18:22:40+00:00

Say you have an simple CRM system with customers and orders. If a customer

  • 0

Say you have an simple CRM system with customers and orders. If a customer changes his name, will you prefer that the old historical orders get the new name as well, or do you copy it to a string value on the order to preserve the accuracy?

I doubt there is an answer that covers all situations, but I’m struggling with deciding where I can accept the historical data to be changed and where I cannot accept it. Generally I’m using the thought that if it can be printed, it must be printable again later and therefore it should not change.

Happy to hear what you think…

(If this question belongs elsewhere, please point the way… )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:22:41+00:00Added an answer on May 26, 2026 at 6:22 pm

    You can’t allow historical data like that to be changed, especially on things that you might someday be required to print and turn over to a court of law.

    Generally I’m using the thought that if it can be printed, it must be
    printable again later and therefore it should not change.

    That’s not a bad start. But some printed things are expected to change over time. Telephone books, criss-cross directories, billing addresses. You want to allow the columns that contain “current billing address” to change, but you don’t want columns that contain “billing address at the time of an order” to change. You want “current price” to change over time, but “price at the time of an order” should not change over time.

    In short, you need to know what each column means before you can decide whether to cascade updates to it.

    If you allow “price at the time of an order” to change over time, you’ll change the order totals over time–something I’m sure your accountants would throw a hissy fit about.

    There are several ways to prevent changes to historical data.

    • Don’t use foreign key references that cascade updates or deletes.
      This is virtually always a requirement. Whether you can use foreign key references at all is application-dependent.
    • Let the user-interface populate things like “billing address at the
      time of an order”, maybe by selecting and copying from a table of customer billing addresses. This doesn’t duplicate data, not in the relational sense anyway. Duplicate data means “the same values with the same meaning”. When you copy the current billing address to the column “billing address at the time of an order”, you’re changing its meaning.
    • Timestamp your source tables. A table of “customer billing
      addresses” might, for example, also contain the columns that mean
      “use this billing address for orders placed on or after this date” (a
      start date) and “use this billing address for orders placed before
      this date” (an end date). You’d join orders to this table; the date
      of the order would determine which row was used at the time of the
      order (like, ...JOIN customer_billing_addresses c ON c.start_date <= orders.order_date AND orders.order_date < c.end_date...).
      You’ll need careful design to guarantee there are no overlapping
      periods, and that deleting rows from customer billing addresses is tightly controlled. (That is, almost entirely prohibited.)

    Whatever the approach, think hard about who should have permissions to change data in the historical tables. Once an order ships, that means just about nobody.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a simple Login servlet that checks the passed name and
Say I have simple program that emulates a board game with a number of
Say I have a simple table that contains username, firstname, lastname. How do I
Say I have a simple object which supports implicit casting to System.String public sealed
i have simple question, let's say i have input like this: <input name=somename type=checkbox
Say I have a simple WCF application that the client calls in order to
Let's say I have a simple class Cat in C#, with a Name property
So, say I have a simple enum and a class that uses it: enum
Say I have a simple function that alerts a message: function callMessage(msg){ alert(msg); }
Let's say I have a simple View that displays a bit of text. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.