[Home] [Help]
4080: delete /*+ parallel(temp) */ from hz_purge_gt temp where
4081: temp.party_id in (select /*+ parallel(xx)*/ xx.ASSESSMENT_OWNER_ID from AMW_ASSESSMENTS_B xx
4082: );
4083: end if;
4084: --AMW_AP_EXECUTIONS;EXECUTED_BY
4085: appid:=242;
4086: if(regid_proc = true) then
4087: insert into hz_application_trans_gt(app_id,party_id) select 242, temp.party_id from hz_purge_gt temp where not exists(select 'Y' from hz_application_trans_gt appl where appl.app_id = 242 and appl.party_id=temp.party_id) and
4088:
4085: appid:=242;
4086: if(regid_proc = true) then
4087: insert into hz_application_trans_gt(app_id,party_id) select 242, temp.party_id from hz_purge_gt temp where not exists(select 'Y' from hz_application_trans_gt appl where appl.app_id = 242 and appl.party_id=temp.party_id) and
4088:
4089: temp.party_id in (select /*+ parallel(xx)*/ xx.EXECUTED_BY from AMW_AP_EXECUTIONS xx
4090: );
4091: else
4092: delete /*+ parallel(temp) */ from hz_purge_gt temp where
4093: temp.party_id in (select /*+ parallel(xx)*/ xx.EXECUTED_BY from AMW_AP_EXECUTIONS xx
4089: temp.party_id in (select /*+ parallel(xx)*/ xx.EXECUTED_BY from AMW_AP_EXECUTIONS xx
4090: );
4091: else
4092: delete /*+ parallel(temp) */ from hz_purge_gt temp where
4093: temp.party_id in (select /*+ parallel(xx)*/ xx.EXECUTED_BY from AMW_AP_EXECUTIONS xx
4094: );
4095: end if;
4096: --AMW_CONSTRAINTS_B;ENTERED_BY_ID
4097: appid:=242;