[Home] [Help]
3394: delete /*+ parallel(temp) */ from hz_purge_gt temp where
3395: temp.party_id in (select /*+ parallel(xx)*/ xx.AUTOPAY_PARTY_ID from OZF_OFFERS xx
3396: );
3397: end if;
3398: --OZF_ACTIVITY_CUSTOMERS;PARTY_ID
3399: appid:=682;
3400: if(regid_proc = true) then
3401: insert into hz_application_trans_gt(app_id,party_id) select 682, temp.party_id from hz_purge_gt temp where not exists(select 'Y' from hz_application_trans_gt appl where appl.app_id = 682 and appl.party_id=temp.party_id) and
3402:
3399: appid:=682;
3400: if(regid_proc = true) then
3401: insert into hz_application_trans_gt(app_id,party_id) select 682, temp.party_id from hz_purge_gt temp where not exists(select 'Y' from hz_application_trans_gt appl where appl.app_id = 682 and appl.party_id=temp.party_id) and
3402:
3403: temp.party_id in (select /*+ parallel(xx)*/ xx.PARTY_ID from OZF_ACTIVITY_CUSTOMERS xx
3404: );
3405: else
3406: delete /*+ parallel(temp) */ from hz_purge_gt temp where
3407: temp.party_id in (select /*+ parallel(xx)*/ xx.PARTY_ID from OZF_ACTIVITY_CUSTOMERS xx
3403: temp.party_id in (select /*+ parallel(xx)*/ xx.PARTY_ID from OZF_ACTIVITY_CUSTOMERS xx
3404: );
3405: else
3406: delete /*+ parallel(temp) */ from hz_purge_gt temp where
3407: temp.party_id in (select /*+ parallel(xx)*/ xx.PARTY_ID from OZF_ACTIVITY_CUSTOMERS xx
3408: );
3409: end if;
3410: --OZF_CLAIM_LINES_HIST_ALL;BUY_GROUP_PARTY_ID
3411: appid:=682;