sanctified
Programmer
I have a table which self-joins to itself by the following fields: SiteID and MergeID
So I will have:
SiteID MergeID StartDate Notice MergeStatus
127 128 01/12/2006 7
128 127 02/12/2006 7
My asp application will pass in the siteid for one of the records. I will need to update the MergeStatus field using the following definition: If the duedate (startdate - notice) > today then set the MergeStatus to 1 for the OTHER record i.e the mergeid that matches the sitedid being passed in otherwise set the mergestaus for the siteid being passed in to 2.
Any ideas how to form the SP?
Regards
So I will have:
SiteID MergeID StartDate Notice MergeStatus
127 128 01/12/2006 7
128 127 02/12/2006 7
My asp application will pass in the siteid for one of the records. I will need to update the MergeStatus field using the following definition: If the duedate (startdate - notice) > today then set the MergeStatus to 1 for the OTHER record i.e the mergeid that matches the sitedid being passed in otherwise set the mergestaus for the siteid being passed in to 2.
Any ideas how to form the SP?
Regards