Updating Historical Information

  • I have to create a slowly changing dimension with the caveat that any of the data attributes can change for any of the records (even the historical one's). There is a surrogate key from the source system that i could store locally but i was wondering if anyone has run in to this situation and used a different option / design.

  • I haven't implemented this kind of situation but I think that the most elegant way is to store surrogate key of the source table to data warehouse table and use this as a business key in slowly changing dimension component.

    I have used surrogate key of the source table as a business key many times in different situations.

  • SA-1 (11/5/2013)


    I have to create a slowly changing dimension with the caveat that any of the data attributes can change for any of the records (even the historical one's). There is a surrogate key from the source system that i could store locally but i was wondering if anyone has run in to this situation and used a different option / design.

    I'm always amazed by such things. Historical table data is NOT supposed to change. By definition, it's supposed to be historical and, therefor, never change. Changing historical information may keep your company from getting ISO, SOX, and SEC certifications and, if something really bad happens, could even land everyone involved in jail.

    I strongly recommend that the company get out of the nasty habit of changing historical information whereever it is kept.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply