OK.... I will try and explain this as best as I could.
I have a table consisting of two columns, member_key and a date. Each record is unique combination of member_key and a date.
I also have a second table which hold multiple records for each member_key. For example,
Table1
Member_key | Date1
1000 | 01/01/2001
Table2
Member_key | Contribution_date
1000 | 01/01/1998
1000 | 01/01/1978
1000 | 01/01/1993
1000 | 01/01/2002
What I need to do is update the second table and replace the min(contribution_date) with the date that is in table1. So in other words, replace 01/01/1978 with 01/01/2001 which is the date in Table1.
Any ideas?
Thanks.
I have a table consisting of two columns, member_key and a date. Each record is unique combination of member_key and a date.
I also have a second table which hold multiple records for each member_key. For example,
Table1
Member_key | Date1
1000 | 01/01/2001
Table2
Member_key | Contribution_date
1000 | 01/01/1998
1000 | 01/01/1978
1000 | 01/01/1993
1000 | 01/01/2002
What I need to do is update the second table and replace the min(contribution_date) with the date that is in table1. So in other words, replace 01/01/1978 with 01/01/2001 which is the date in Table1.
Any ideas?
Thanks.