I am trying to create a table which holds the historical running times (in minutes) for a host of athletes. The table holds a foreign key to the persons name, along with storing their new running time and previous running time, along with the date the run was performed.
I am trying to keep all records of runners in the same table. I want to refer to the old running time in the new entry of when a new running time is complete. I am struggling on how this relationship will work.
Below is a table explaining what I am trying to achieve.
|Name_ID {FK}|Completion_Date|New_Time|Old_Time|
| 001 | 16/02/2019 | 123 | 108 |
| 001 | 16/03/2019 | 136 | 123 |
As you the table shows, the new average from the 16/02/2019 appears as the old average in 16/03/2019.
My question is how would I construct this relationship? Is it possible to make this a relationship?
OR
Is there a more efficient way? I.e Have the following table:
|Name_ID {FK}|Completion_Date|New_Time|
| 001 | 16/02/2019 | 123 |
| 001 | 16/03/2019 | 136 |
and create a query that could use the Name_ID and completion_Date attributes to produce an output that made:
|Name_ID {FK}|Completion_Date|New_Time|Old_Time|
| 001 | 16/02/2019 | 123 | 108 |
Any help will be appreciated.