Hi,
I have two tables, 1 indexing the details of an email campaign. The second table details the recipients of this campaign, and whether they have responded to the email etc.
I need to create a stored procedure that can update the status of the 'master record' in TBL1 when all the references(recipients) in TBL2 have a status >1.
The table structure for simplicity can be assumed to be;
TBL1
key | Title | Status(default 1)
TBL2
Key | TBL1_Key | Recipient | Status(default 0)
So essentially what i need to do is set the status of each record(max 100 per call) in TBL1 (where its status is already == 1) to '2' when all corresponding records in TBL2 have a status of > 1.
The records are linked ON TBL1.key = TBL2.TBL1_key
Hope this is explained clearly, and that you can offer me some help.
As always.... THANKS!!!!