I have two tables X and Y. This is back end of a web based CRUD application.
Let's say that rows in Y have fields a, b and c. When a row in X is created, it has to link to a snapshot of the values in a specific row of Y. The row in Y may change later but the row in X should still have the values of a, b and c at the time of creation.
What is the "correct" way of doing something like this? Duplicating the fields a, b and c in X seems to be straightforward but I was wondering if there are any better ways of doing this.