Hello,
We are trying to implement a versioning mechanism for any table. I'd like to have your suggestions and recommendations in designing one. Triggers and 3rd Party Tools aren't permitted at this stage.
The scenario is like this :
When a record in a table is 'updated', it should not be actually updated or deleted but it needs to be 'moved up' and a new one inserted with a different version number and the changes.
For example, considering a Master Record M1, stored in database, with multiple child records(S1, S2, S3)- If S1 is changed/updated, its latest version becomes 2, while S2 and S3's latest version number remains 1. The overall version of M1 becomes 2(two).
The idea behind this is, to implement a generic design to fetch any version of the Master Record with a simple SELECT, given the version number.
Please provide me with some pointers in this. We've been discussing this for quite some time now in our team, with no conclusive solution yet. I can explain further if necessary.
Thank you very much in advance.
Thank you,
RR.
__________________________________
The best is yet to come.
We are trying to implement a versioning mechanism for any table. I'd like to have your suggestions and recommendations in designing one. Triggers and 3rd Party Tools aren't permitted at this stage.
The scenario is like this :
When a record in a table is 'updated', it should not be actually updated or deleted but it needs to be 'moved up' and a new one inserted with a different version number and the changes.
For example, considering a Master Record M1, stored in database, with multiple child records(S1, S2, S3)- If S1 is changed/updated, its latest version becomes 2, while S2 and S3's latest version number remains 1. The overall version of M1 becomes 2(two).
The idea behind this is, to implement a generic design to fetch any version of the Master Record with a simple SELECT, given the version number.
Please provide me with some pointers in this. We've been discussing this for quite some time now in our team, with no conclusive solution yet. I can explain further if necessary.
Thank you very much in advance.
Thank you,
RR.
__________________________________
The best is yet to come.