• Greate article and the disscussion about historical data, here I am going to say something and need your help.

    I would also add effectiveStartDate and effectiveEndDate fields to the PayGrade_Details table so that you could see that Charlie Fixit spent 3 years at paygrade 12 and then got bumped up to paygrade 13 and when it happened. Then I would just grab the paygrade record whose start date/end date falls within the proper date range that I need...I'm not sure if that is the correct way to do it or what NF that is but that's the way I've been doing it

    I am also doing this fromdate/todate technique to store historical data, but I am not sure that this is the good one to do this... In this particular way we need to keep NULL value or any predefined default value into 'todate' column untill the row is treated as the current... please advice any other way to mange the historical data...

    I could also use a historical or archive paygrade table and move the old records into that table when they are changed...but I'm not sure which way is the recognized "proper" way to do it.

    I haven't try it till now, I think it could be better than first one. because there is no NULL value stored here......

    Thanks,

    [font="Verdana"]Fazal Khan[/font]
    C.T.O
    [font="Verdana"]TARECO SOFTONICS[/font]