Tupacmoche
Registered User.
- Local time
- Today, 17:55
- Joined
- Apr 28, 2008
- Messages
- 291
Hi SQL Masters,
I have the following sample table the real one has about 5,000 rows:
id_numberreceipt_numberreport_namexsequencefyreceipt_dateallocationallocation_nameAssociated10699741001751504Simth, John1120179/2/201611-A3767Faculty and Friends Campaign 2016-2017Primary10768751001751504Simth, John2220179/2/201611-A3766Faculty and Friends Campaign 2015-2016Joint Donor67834441001751504Simth, John3320179/2/201611-A3766Faculty and Friends Campaign 2015-2016Med Faculty Credit
What, I'm trying to accomplish is the following: As you can see the receipt_number is the same which means this set of records belong together. The xsequence = 1 and Associated = Primary have an allocation code = 11-A3767. I need a script that can change the other allocations that are not equal to 11-A3767 where the Associated types are equal to either 'Joint Donor' or 'Med Faculty Credit' How can this be done?:banghead:
I have the following sample table the real one has about 5,000 rows:
id_numberreceipt_numberreport_namexsequencefyreceipt_dateallocationallocation_nameAssociated10699741001751504Simth, John1120179/2/201611-A3767Faculty and Friends Campaign 2016-2017Primary10768751001751504Simth, John2220179/2/201611-A3766Faculty and Friends Campaign 2015-2016Joint Donor67834441001751504Simth, John3320179/2/201611-A3766Faculty and Friends Campaign 2015-2016Med Faculty Credit
What, I'm trying to accomplish is the following: As you can see the receipt_number is the same which means this set of records belong together. The xsequence = 1 and Associated = Primary have an allocation code = 11-A3767. I need a script that can change the other allocations that are not equal to 11-A3767 where the Associated types are equal to either 'Joint Donor' or 'Med Faculty Credit' How can this be done?:banghead: