Hello
I have table which has address changes recorded within it. It has aunique identifying field 'Key' and also has a foreign key 'FKEY'. The table currently looks like this:
Key FKEY DateOfChange Add1 Add2
1 100 01/01/2009 1 Test Street TestTown
2 100 02/01/2009 1 Test Street TestTown
3 100 03/01/2009 3 Test Street TestTown
4 100 04/01/2009 3 Test Street TestTown
So what I need is row 3 'DateOfChange' as the address has changed but I also need to take into account that the address hasnt changed since then.
Overall I need to get the date of the last address change and in this example its 03/01/2009.
Can someone point me in the right direction as to how to do this?
Thanks
I have table which has address changes recorded within it. It has aunique identifying field 'Key' and also has a foreign key 'FKEY'. The table currently looks like this:
Key FKEY DateOfChange Add1 Add2
1 100 01/01/2009 1 Test Street TestTown
2 100 02/01/2009 1 Test Street TestTown
3 100 03/01/2009 3 Test Street TestTown
4 100 04/01/2009 3 Test Street TestTown
So what I need is row 3 'DateOfChange' as the address has changed but I also need to take into account that the address hasnt changed since then.
Overall I need to get the date of the last address change and in this example its 03/01/2009.
Can someone point me in the right direction as to how to do this?
Thanks