The following lines contain the word 'select', 'insert', 'update' or 'delete':
g_pg_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_ppl_grp_rt_f pgr' ||
' where pgr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between pgr.effective_start_date' ||
' and pgr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select pgr.vrbl_rt_prfl_id, pgr.people_group_id, pgr.excld_flag ,' ||
' ppg.segment1 ,ppg.segment2 ,ppg.segment3 ,ppg.segment4 ,ppg.segment5 ,' ||
' ppg.segment6 ,ppg.segment7 ,ppg.segment8 ,ppg.segment9, ppg.segment10 ,ppg.segment11 ,' ||
' ppg.segment12 ,ppg.segment13 ,ppg.segment14 ,ppg.segment15 ,ppg.segment16 ,'||
' ppg.segment17 ,ppg.segment18 ,ppg.segment19 ,ppg.segment20 ,ppg.segment21 ,'||
' ppg.segment22 ,ppg.segment23 ,ppg.segment24 ,ppg.segment25 ,ppg.segment26 ,'||
' ppg.segment27 ,ppg.segment28 ,ppg.segment29 ,ppg.segment30 ' ||
' from ben_ppl_grp_rt_f pgr , pay_people_groups ppg ' ||
' where pgr.business_group_id = ' || to_char(p_business_group_id) ||
' and pgr.people_group_id = ppg.people_group_id ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between pgr.effective_start_date' ||
' and pgr.effective_end_date' ||
' order by pgr.vrbl_rt_prfl_id;';
g_pg_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_ppl_grp_rt_f pgr' ||
' where pgr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between pgr.effective_start_date' ||
' and pgr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select pgr.vrbl_rt_prfl_id, pgr.people_group_id, pgr.excld_flag' ||
' from ben_ppl_grp_rt_f pgr ' ||
' where pgr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between pgr.effective_start_date' ||
' and pgr.effective_end_date' ||
' order by pgr.vrbl_rt_prfl_id;';
g_rl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_vrbl_rt_prfl_rl_f rpr' ||
' where rpr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between rpr.effective_start_date' ||
' and rpr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select rpr.vrbl_rt_prfl_id, rpr.formula_id' ||
' from ben_vrbl_rt_prfl_rl_f rpr' ||
' where rpr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between rpr.effective_start_date' ||
' and rpr.effective_end_date' ||
' order by rpr.vrbl_rt_prfl_id;';
g_tbco_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_tbco_use_rt_f btu' ||
' where btu.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between btu.effective_start_date' ||
' and btu.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select btu.vrbl_rt_prfl_id, btu.uses_tbco_flag, btu.excld_flag' ||
' from ben_tbco_use_rt_f btu' ||
' where btu.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between btu.effective_start_date' ||
' and btu.effective_end_date' ||
' order by btu.vrbl_rt_prfl_id;';
g_gndr_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_gndr_rt_f bgr' ||
' where bgr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between bgr.effective_start_date' ||
' and bgr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select bgr.vrbl_rt_prfl_id, bgr.gndr_cd, bgr.excld_flag' ||
' from ben_gndr_rt_f bgr' ||
' where bgr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between bgr.effective_start_date' ||
' and bgr.effective_end_date' ||
' order by bgr.vrbl_rt_prfl_id;';
g_dsbld_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_dsbld_rt_f dbr' ||
' where dbr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between dbr.effective_start_date' ||
' and dbr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select dbr.vrbl_rt_prfl_id, dbr.dsbld_cd, dbr.excld_flag' ||
' from ben_dsbld_rt_f dbr' ||
' where dbr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between dbr.effective_start_date' ||
' and dbr.effective_end_date' ||
' order by dbr.vrbl_rt_prfl_id;';
g_brgng_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_brgng_unit_rt_f ebu' ||
' where ebu.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between ebu.effective_start_date' ||
' and ebu.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select ebu.vrbl_rt_prfl_id, ebu.brgng_unit_cd, ebu.excld_flag' ||
' from ben_brgng_unit_rt_f ebu' ||
' where ebu.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between ebu.effective_start_date' ||
' and ebu.effective_end_date' ||
' order by ebu.vrbl_rt_prfl_id;';
g_bnfgrp_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_benfts_grp_rt_f bgr' ||
' where bgr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between bgr.effective_start_date' ||
' and bgr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select bgr.vrbl_rt_prfl_id, bgr.benfts_grp_id, bgr.excld_flag' ||
' from ben_benfts_grp_rt_f bgr' ||
' where bgr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between bgr.effective_start_date' ||
' and bgr.effective_end_date' ||
' order by bgr.vrbl_rt_prfl_id;';
g_eestat_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_ee_stat_rt_f ees' ||
' where ees.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between ees.effective_start_date' ||
' and ees.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select ees.vrbl_rt_prfl_id, ees.assignment_status_type_id,' ||
' ees.excld_flag' ||
' from ben_ee_stat_rt_f ees' ||
' where ees.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between ees.effective_start_date' ||
' and ees.effective_end_date' ||
' order by ees.vrbl_rt_prfl_id;';
g_grd_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_grade_rt_f egr' ||
' where egr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between egr.effective_start_date' ||
' and egr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select egr.vrbl_rt_prfl_id, egr.grade_id, egr.excld_flag' ||
' from ben_grade_rt_f egr' ||
' where egr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between egr.effective_start_date' ||
' and egr.effective_end_date' ||
' order by egr.vrbl_rt_prfl_id;';
g_pctft_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_pct_fl_tm_rt_f epf' ||
' where epf.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between epf.effective_start_date' ||
' and epf.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select epf.vrbl_rt_prfl_id, pff.mn_pct_val, pff.mx_pct_val,' ||
' pff.no_mn_pct_val_flag, pff.no_mx_pct_val_flag, epf.excld_flag' ||
' from ben_pct_fl_tm_fctr pff, ben_pct_fl_tm_rt_f epf' ||
' where pff.pct_fl_tm_fctr_id = epf.pct_fl_tm_fctr_id' ||
' and epf.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between epf.effective_start_date' ||
' and epf.effective_end_date' ||
' order by epf.vrbl_rt_prfl_id;';
g_hrswkd_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_hrs_wkd_in_perd_rt_f ehw' ||
' where ehw.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between ehw.effective_start_date' ||
' and ehw.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select ehw.vrbl_rt_prfl_id, hwf.mn_hrs_num, hwf.mx_hrs_num,' ||
' hwf.no_mn_hrs_wkd_flag, hwf.no_mx_hrs_wkd_flag, ehw.excld_flag' ||
' from ben_hrs_wkd_in_perd_fctr hwf, ben_hrs_wkd_in_perd_rt_f ehw' ||
' where hwf.hrs_wkd_in_perd_fctr_id = ehw.hrs_wkd_in_perd_fctr_id' ||
' and ehw.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between ehw.effective_start_date' ||
' and ehw.effective_end_date' ||
' order by ehw.vrbl_rt_prfl_id;';
g_poe_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_poe_rt_f prt' ||
' where prt.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between prt.effective_start_date' ||
' and prt.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select prt.vrbl_rt_prfl_id, prt.mn_poe_num, prt.mx_poe_num,' ||
' prt.no_mn_poe_flag, prt.no_mx_poe_flag, prt.rndg_cd,' ||
' prt.rndg_rl, prt.poe_nnmntry_uom, prt.cbr_dsblty_apls_flag' ||
' from ben_poe_rt_f prt' ||
' where prt.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between prt.effective_start_date' ||
' and prt.effective_end_date' ||
' order by prt.vrbl_rt_prfl_id;';
g_lbrmmbr_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_lbr_mmbr_rt_f elu' ||
' where elu.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between elu.effective_start_date' ||
' and elu.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select elu.vrbl_rt_prfl_id, elu.lbr_mmbr_flag, elu.excld_flag' ||
' from ben_lbr_mmbr_rt_f elu' ||
' where elu.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between elu.effective_start_date' ||
' and elu.effective_end_date' ||
' order by elu.vrbl_rt_prfl_id;';
g_lglenty_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_lgl_enty_rt_f eln' ||
' where eln.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between eln.effective_start_date' ||
' and eln.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select eln.vrbl_rt_prfl_id, eln.organization_id, eln.excld_flag' ||
' from ben_lgl_enty_rt_f eln' ||
' where eln.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between eln.effective_start_date' ||
' and eln.effective_end_date' ||
' order by eln.vrbl_rt_prfl_id;';
g_pertyp_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_per_typ_rt_f ptr' ||
' where ptr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between ptr.effective_start_date' ||
' and ptr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select ptr.vrbl_rt_prfl_id, ptr.person_type_id, ptr.excld_flag' ||
' from ben_per_typ_rt_f ptr' ||
' where ptr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between ptr.effective_start_date' ||
' and ptr.effective_end_date' ||
' order by ptr.vrbl_rt_prfl_id;';
g_ziprng_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_pstl_zip_rt_f epz' ||
' where epz.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between epz.effective_start_date' ||
' and epz.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select epz.vrbl_rt_prfl_id, rzr.from_value,' ||
' rzr.to_value, epz.excld_flag' ||
' from ben_pstl_zip_rng_f rzr, ben_pstl_zip_rt_f epz' ||
' where epz.business_group_id = ' || to_char(p_business_group_id) ||
' and epz.pstl_zip_rng_id = rzr.pstl_zip_rng_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between epz.effective_start_date' ||
' and epz.effective_end_date' ||
' order by epz.vrbl_rt_prfl_id;';
g_pyrl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_pyrl_rt_f pr' ||
' where pr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between pr.effective_start_date' ||
' and pr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select pr.vrbl_rt_prfl_id, pr.payroll_id, pr.excld_flag' ||
' from ben_pyrl_rt_f pr' ||
' where pr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between pr.effective_start_date' ||
' and pr.effective_end_date' ||
' order by pr.vrbl_rt_prfl_id;';
g_py_bss_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_py_bss_rt_f pbr' ||
' where pbr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between pbr.effective_start_date' ||
' and pbr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select pbr.vrbl_rt_prfl_id, pbr.pay_basis_id, pbr.excld_flag' ||
' from ben_py_bss_rt_f pbr' ||
' where pbr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between pbr.effective_start_date' ||
' and pbr.effective_end_date' ||
' order by pbr.vrbl_rt_prfl_id;';
g_scdhrs_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_schedd_hrs_rt_f shr' ||
' where shr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between shr.effective_start_date' ||
' and shr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select shr.vrbl_rt_prfl_id, shr.hrs_num, shr.freq_cd, '||
' shr.max_hrs_num, shr.schedd_hrs_rl, shr.determination_cd, shr.determination_rl, '||
' shr.rounding_cd, shr.rounding_rl, ' ||
' shr.excld_flag' ||
' from ben_schedd_hrs_rt_f shr' ||
' where shr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between shr.effective_start_date' ||
' and shr.effective_end_date' ||
' order by shr.vrbl_rt_prfl_id;';
g_wkloc_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_wk_loc_rt_f wlr' ||
' where wlr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between wlr.effective_start_date' ||
' and wlr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select wlr.vrbl_rt_prfl_id, wlr.location_id , wlr.excld_flag' ||
' from ben_wk_loc_rt_f wlr' ||
' where wlr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between wlr.effective_start_date' ||
' and wlr.effective_end_date' ||
' order by wlr.vrbl_rt_prfl_id;';
g_svcarea_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_svc_area_rt_f sar' ||
' where sar.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between sar.effective_start_date' ||
' and sar.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select sar.vrbl_rt_prfl_id, pzr.from_value,' ||
' pzr.to_value, sar.excld_flag' ||
' from ben_pstl_zip_rng_f pzr, ben_svc_area_pstl_zip_rng_f spz,' ||
' ben_svc_area_rt_f sar' ||
' where sar.business_group_id = ' || to_char(p_business_group_id) ||
' and sar.svc_area_id = spz.svc_area_id' ||
' and spz.pstl_zip_rng_id = pzr.pstl_zip_rng_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between sar.effective_start_date' ||
' and sar.effective_end_date' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between pzr.effective_start_date' ||
' and pzr.effective_end_date' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between spz.effective_start_date' ||
' and spz.effective_end_date' ||
' order by sar.vrbl_rt_prfl_id;';
g_hrlyslrd_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_hrly_slrd_rt_f hsr' ||
' where hsr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between hsr.effective_start_date' ||
' and hsr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select hsr.vrbl_rt_prfl_id, hsr.hrly_slrd_cd, hsr.excld_flag' ||
' from ben_hrly_slrd_rt_f hsr' ||
' where hsr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between hsr.effective_start_date' ||
' and hsr.effective_end_date' ||
' order by hsr.vrbl_rt_prfl_id;';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
g_complvl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_comp_lvl_rt_f clr' ||
' where clr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between clr.effective_start_date' ||
' and clr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select clr.vrbl_rt_prfl_id, clf.mn_comp_val, clf.mx_comp_val,' ||
' clr.comp_lvl_fctr_id, clr.excld_flag, no_mn_comp_flag, no_mx_comp_flag' ||
' from ben_comp_lvl_fctr clf, ben_comp_lvl_rt_f clr' ||
' where clr.business_group_id = ' || to_char(p_business_group_id) ||
' and clr.comp_lvl_fctr_id = clf.comp_lvl_fctr_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between clr.effective_start_date' ||
' and clr.effective_end_date' ||
' order by clr.vrbl_rt_prfl_id;';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
l_instcolnm_set(l_instcolnm_num).col_type := 'SELECT';
g_los_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_los_rt_f lsr' ||
' where lsr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between lsr.effective_start_date' ||
' and lsr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select lsr.vrbl_rt_prfl_id, lsf.mn_los_num, lsf.mx_los_num,' ||
' lsr.excld_flag, no_mn_los_num_apls_flag, no_mx_los_num_apls_flag, '||
' lsf.los_fctr_id' ||
' from ben_los_fctr lsf, ben_los_rt_f lsr' ||
' where lsr.business_group_id = ' || to_char(p_business_group_id) ||
' and lsr.los_fctr_id = lsf.los_fctr_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between lsr.effective_start_date' ||
' and lsr.effective_end_date' ||
' order by lsr.vrbl_rt_prfl_id;';
g_age_los_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_cmbn_age_los_rt_f cmr' ||
' where cmr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between cmr.effective_start_date' ||
' and cmr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select cmr.vrbl_rt_prfl_id, cla.cmbnd_min_val, cla.cmbnd_max_val,' ||
' cmr.excld_flag, cla.cmbn_age_los_fctr_id' ||
' from ben_cmbn_age_los_fctr cla, ben_cmbn_age_los_rt_f cmr' ||
' where cmr.business_group_id = ' || to_char(p_business_group_id) ||
' and cmr.cmbn_age_los_fctr_id = cla.cmbn_age_los_fctr_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between cmr.effective_start_date' ||
' and cmr.effective_end_date' ||
' order by cmr.vrbl_rt_prfl_id;';
g_ttl_cvg_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_ttl_cvg_vol_rt_f bgr' ||
' where bgr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between bgr.effective_start_date' ||
' and bgr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select bgr.vrbl_rt_prfl_id, bgr.mn_cvg_vol_amt, bgr.mx_cvg_vol_amt' ||
' from ben_ttl_cvg_vol_rt_f bgr' ||
' where bgr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between bgr.effective_start_date' ||
' and bgr.effective_end_date' ||
' order by bgr.vrbl_rt_prfl_id;';
g_job_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_job_rt_f jrt' ||
' where jrt.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between jrt.effective_start_date' ||
' and jrt.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select jrt.vrbl_rt_prfl_id, jrt.job_id, jrt.excld_flag' ||
' from ben_job_rt_f jrt' ||
' where jrt.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between jrt.effective_start_date' ||
' and jrt.effective_end_date' ||
' order by jrt.vrbl_rt_prfl_id;';
g_optd_mdcr_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_optd_mdcr_rt_f omr' ||
' where omr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between omr.effective_start_date' ||
' and omr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select omr.vrbl_rt_prfl_id, omr.optd_mdcr_flag' ||
' from ben_optd_mdcr_rt_f omr' ||
' where omr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between omr.effective_start_date' ||
' and omr.effective_end_date' ||
' order by omr.vrbl_rt_prfl_id;';
g_lvg_rsn_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_lvg_rsn_rt_f lrr' ||
' where lrr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between lrr.effective_start_date' ||
' and lrr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select lrr.vrbl_rt_prfl_id, lrr.lvg_rsn_cd, lrr.excld_flag' ||
' from ben_lvg_rsn_rt_f lrr' ||
' where lrr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between lrr.effective_start_date' ||
' and lrr.effective_end_date' ||
' order by lrr.vrbl_rt_prfl_id;';
g_cbr_qual_bnf_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_cbr_quald_bnf_rt_f cqr' ||
' where cqr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between cqr.effective_start_date' ||
' and cqr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select cqr.vrbl_rt_prfl_id, cqr.ptip_id, cqr.pgm_id,' ||
' cqr.quald_bnf_flag ' ||
' from ben_cbr_quald_bnf_rt_f cqr' ||
' where cqr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between cqr.effective_start_date' ||
' and cqr.effective_end_date' ||
' order by cqr.vrbl_rt_prfl_id;';
g_cntng_prtn_prfl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_cntng_prtn_prfl_rt_f cpp' ||
' where cpp.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between cpp.effective_start_date' ||
' and cpp.effective_end_date ) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date ) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select cpp.vrbl_rt_prfl_id, cpp.pymt_must_be_rcvd_uom, ' ||
' cpp.pymt_must_be_rcvd_num , cpp.pymt_must_be_rcvd_rl ' ||
' from ben_cntng_prtn_prfl_rt_f cpp' ||
' where cpp.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between cpp.effective_start_date' ||
' and cpp.effective_end_date' ||
' order by cpp.vrbl_rt_prfl_id;';
g_pstn_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_pstn_rt_f psr' ||
' where psr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between psr.effective_start_date' ||
' and psr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select psr.vrbl_rt_prfl_id, psr.position_id, psr.excld_flag' ||
' from ben_pstn_rt_f psr' ||
' where psr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between psr.effective_start_date' ||
' and psr.effective_end_date' ||
' order by psr.vrbl_rt_prfl_id;';
g_comptncy_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_comptncy_rt_f cty' ||
' where cty.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between cty.effective_start_date' ||
' and cty.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select cty.vrbl_rt_prfl_id, cty.competence_id,' ||
' cty.rating_level_id, cty.excld_flag' ||
' from ben_comptncy_rt_f cty' ||
' where cty.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between cty.effective_start_date' ||
' and cty.effective_end_date' ||
' order by cty.vrbl_rt_prfl_id;';
g_qual_titl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_qual_titl_rt_f qtr' ||
' where qtr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between qtr.effective_start_date' ||
' and qtr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select qtr.vrbl_rt_prfl_id, qtr.qualification_type_id,' ||
' qtr.title, qtr.excld_flag' ||
' from ben_qual_titl_rt_f qtr' ||
' where qtr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between qtr.effective_start_date' ||
' and qtr.effective_end_date' ||
' order by qtr.vrbl_rt_prfl_id;';
g_dpnt_cvrd_othr_pl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_DPNT_CVRD_OTHR_PL_RT_F dcr' ||
' where dcr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between dcr.effective_start_date' ||
' and dcr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select dcr.vrbl_rt_prfl_id, dcr.pl_id,' ||
' dcr.cvg_det_dt_cd , dcr.excld_flag' ||
' from BEN_DPNT_CVRD_OTHR_PL_RT_F dcr' ||
' where dcr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between dcr.effective_start_date' ||
' and dcr.effective_end_date' ||
' order by dcr.vrbl_rt_prfl_id;';
g_dpnt_cvrd_othr_plip_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_DPNT_CVRD_PLIP_RT_F dcp' ||
' where dcp.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between dcp.effective_start_date' ||
' and dcp.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select dcp.vrbl_rt_prfl_id, dcp.plip_id,' ||
' dcp.enrl_det_dt_cd , dcp.excld_flag' ||
' from BEN_DPNT_CVRD_PLIP_RT_F dcp' ||
' where dcp.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between dcp.effective_start_date' ||
' and dcp.effective_end_date' ||
' order by dcp.vrbl_rt_prfl_id;';
g_dpnt_cvrd_othr_ptip_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_DPNT_CVRD_OTHR_PTIP_RT_F dco' ||
' where dco.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between dco.effective_start_date' ||
' and dco.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select dco.vrbl_rt_prfl_id, dco.ptip_id,' ||
' dco.enrl_det_dt_cd , dco.excld_flag ,dco.only_pls_subj_cobra_flag ' ||
' from BEN_DPNT_CVRD_OTHR_PTIP_RT_F dco' ||
' where dco.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between dco.effective_start_date' ||
' and dco.effective_end_date' ||
' order by dco.vrbl_rt_prfl_id;';
g_dpnt_cvrd_othr_pgm_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_DPNT_CVRD_OTHR_PGM_RT_F dop' ||
' where dop.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between dop.effective_start_date' ||
' and dop.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select dop.vrbl_rt_prfl_id, dop.pgm_id,' ||
' dop.enrl_det_dt_cd , dop.excld_flag , dop.only_pls_subj_cobra_flag' ||
' from BEN_DPNT_CVRD_OTHR_PGM_RT_F dop' ||
' where dop.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between dop.effective_start_date' ||
' and dop.effective_end_date' ||
' order by dop.vrbl_rt_prfl_id;';
g_prtt_anthr_pl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_PRTT_ANTHR_PL_RT_F pap' ||
' where pap.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between pap.effective_start_date' ||
' and pap.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select pap.vrbl_rt_prfl_id, pap.pl_id,' ||
' pap.excld_flag ' ||
' from BEN_PRTT_ANTHR_PL_RT_F pap' ||
' where pap.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between pap.effective_start_date' ||
' and pap.effective_end_date' ||
' order by pap.vrbl_rt_prfl_id;';
g_othr_ptip_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_OTHR_PTIP_RT_F opr' ||
' where opr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between opr.effective_start_date' ||
' and opr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select opr.vrbl_rt_prfl_id, opr.ptip_id,' ||
' opr.excld_flag ,opr.only_pls_subj_cobra_flag ' ||
' from BEN_OTHR_PTIP_RT_F opr' ||
' where opr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between opr.effective_start_date' ||
' and opr.effective_end_date' ||
' order by opr.vrbl_rt_prfl_id;';
g_enrld_anthr_pl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_ENRLD_ANTHR_PL_RT_F enl' ||
' where enl.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between enl.effective_start_date' ||
' and enl.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select enl.vrbl_rt_prfl_id, enl.pl_id,' ||
' enl.enrl_det_dt_cd , enl.excld_flag ' ||
' from BEN_ENRLD_ANTHR_PL_RT_F enl' ||
' where enl.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between enl.effective_start_date' ||
' and enl.effective_end_date' ||
' order by enl.vrbl_rt_prfl_id;';
g_enrld_anthr_oipl_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_ENRLD_ANTHR_OIPL_RT_F eao' ||
' where eao.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between eao.effective_start_date' ||
' and eao.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select eao.vrbl_rt_prfl_id, eao.oipl_id,' ||
' eao.enrl_det_dt_cd , eao.excld_flag ' ||
' from BEN_ENRLD_ANTHR_OIPL_RT_F eao' ||
' where eao.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between eao.effective_start_date' ||
' and eao.effective_end_date' ||
' order by eao.vrbl_rt_prfl_id;';
g_enrld_anthr_plip_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_ENRLD_ANTHR_PLIP_RT_F ear' ||
' where ear.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between ear.effective_start_date' ||
' and ear.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select ear.vrbl_rt_prfl_id, ear.plip_id,' ||
' ear.enrl_det_dt_cd , ear.excld_flag ' ||
' from BEN_ENRLD_ANTHR_PLIP_RT_F ear' ||
' where ear.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between ear.effective_start_date' ||
' and ear.effective_end_date' ||
' order by ear.vrbl_rt_prfl_id;';
g_enrld_anthr_ptip_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_ENRLD_ANTHR_PTIP_RT_F ent' ||
' where ent.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between ent.effective_start_date' ||
' and ent.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select ent.vrbl_rt_prfl_id, ent.ptip_id,' ||
' ent.enrl_det_dt_cd , ent.excld_flag , ent.only_pls_subj_cobra_flag ' ||
' from BEN_ENRLD_ANTHR_PTIP_RT_F ent' ||
' where ent.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between ent.effective_start_date' ||
' and ent.effective_end_date' ||
' order by ent.vrbl_rt_prfl_id;';
g_enrld_anthr_pgm_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_ENRLD_ANTHR_PGM_RT_F eag' ||
' where eag.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between eag.effective_start_date' ||
' and eag.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select eag.vrbl_rt_prfl_id, eag.pgm_id,' ||
' eag.enrl_det_dt_cd , eag.excld_flag ' ||
' from BEN_ENRLD_ANTHR_PGM_RT_F eag' ||
' where eag.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between eag.effective_start_date' ||
' and eag.effective_end_date' ||
' order by eag.vrbl_rt_prfl_id;';
g_dpnt_othr_ptip_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_DPNT_OTHR_PTIP_RT_F dot' ||
' where dot.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between dot.effective_start_date' ||
' and dot.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select dot.vrbl_rt_prfl_id, dot.ptip_id,' ||
' dot.excld_flag ' ||
' from BEN_DPNT_OTHR_PTIP_RT_F dot' ||
' where dot.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between dot.effective_start_date' ||
' and dot.effective_end_date' ||
' order by dot.vrbl_rt_prfl_id;';
g_no_othr_cvg_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from BEN_NO_OTHR_CVG_RT_F noc' ||
' where noc.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between noc.effective_start_date' ||
' and noc.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select noc.vrbl_rt_prfl_id, noc.coord_ben_no_cvg_flag ' ||
' from BEN_NO_OTHR_CVG_RT_F noc' ||
' where noc.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between noc.effective_start_date' ||
' and noc.effective_end_date' ||
' order by noc.vrbl_rt_prfl_id;';
g_qua_in_gr_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_qua_in_gr_rt_f qig' ||
' where qig.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between qig.effective_start_date' ||
' and qig.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select qig.vrbl_rt_prfl_id, qig.quar_in_grade_cd, qig.excld_flag' ||
' from ben_qua_in_gr_rt_f qig' ||
' where qig.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between qig.effective_start_date' ||
' and qig.effective_end_date' ||
' order by qig.vrbl_rt_prfl_id;';
g_perf_rtng_out.delete;
'select vrbl_rt_prfl_id, business_group_id' ||
' from ben_vrbl_rt_prfl_f vpf' ||
' where business_group_id = ' || to_char(p_business_group_id) ||
' and exists (select null' ||
' from ben_perf_rtng_rt_f prr' ||
' where prr.vrbl_rt_prfl_id = vpf.vrbl_rt_prfl_id' ||
' and ' || date_str(p_lf_evt_ocrd_dt,p_effective_date) ||
' between prr.effective_start_date' ||
' and prr.effective_end_date) ' ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between vpf.effective_start_date and vpf.effective_end_date;';
'select prr.vrbl_rt_prfl_id, prr.perf_rtng_cd,' ||
' prr.event_type, prr.excld_flag' ||
' from ben_perf_rtng_rt_f prr' ||
' where prr.business_group_id = ' || to_char(p_business_group_id) ||
' and ' || date_str(p_lf_evt_ocrd_dt, p_effective_date) ||
' between prr.effective_start_date' ||
' and prr.effective_end_date' ||
' order by prr.vrbl_rt_prfl_id;';
g_pg_lookup.delete;
g_pg_instance.delete;
g_rl_lookup.delete;
g_rl_instance.delete;
g_tbco_lookup.delete;
g_tbco_instance.delete;
g_gndr_lookup.delete;
g_gndr_instance.delete;
g_brgng_lookup.delete;
g_brgng_instance.delete;
g_bnfgrp_lookup.delete;
g_bnfgrp_instance.delete;
g_eestat_lookup.delete;
g_eestat_instance.delete;
g_ftpt_lookup.delete;
g_ftpt_instance.delete;
g_grd_lookup.delete;
g_grd_instance.delete;
g_pctft_lookup.delete;
g_pctft_instance.delete;
g_hrswkd_lookup.delete;
g_hrswkd_instance.delete;
g_lbrmmbr_lookup.delete;
g_lbrmmbr_instance.delete;
g_lglenty_lookup.delete;
g_lglenty_instance.delete;
g_loa_lookup.delete;
g_loa_instance.delete;
g_org_lookup.delete;
g_org_instance.delete;
g_pertyp_lookup.delete;
g_pertyp_instance.delete;
g_ziprng_lookup.delete;
g_ziprng_instance.delete;
g_pyrl_lookup.delete;
g_pyrl_instance.delete;
g_py_bss_lookup.delete;
g_py_bss_instance.delete;
g_scdhrs_lookup.delete;
g_scdhrs_instance.delete;
g_wkloc_lookup.delete;
g_wkloc_instance.delete;
g_svcarea_lookup.delete;
g_svcarea_instance.delete;
g_hrlyslrd_lookup.delete;
g_hrlyslrd_instance.delete;
g_age_lookup.delete;
g_age_instance.delete;
g_complvl_lookup.delete;
g_complvl_instance.delete;
g_los_lookup.delete;
g_los_instance.delete;
g_age_los_lookup.delete;
g_age_los_instance.delete;
g_job_lookup.delete;
g_job_instance.delete;
g_optd_mdcr_lookup.delete;
g_optd_mdcr_instance.delete;
g_lvg_rsn_lookup.delete;
g_lvg_rsn_instance.delete;
g_cbr_qual_bnf_lookup.delete;
g_cbr_qual_bnf_instance.delete;
g_qual_titl_lookup.delete;
g_qual_titl_instance.delete;
g_cntng_prtn_prfl_lookup.delete;
g_cntng_prtn_prfl_instance.delete;
g_pstn_lookup.delete;
g_pstn_instance.delete;
g_comptncy_lookup.delete;
g_comptncy_instance.delete;
g_no_othr_cvg_lookup.delete;
g_no_othr_cvg_instance.delete;
g_dpnt_othr_ptip_lookup.delete;
g_dpnt_othr_ptip_instance.delete;
g_enrld_anthr_pgm_lookup.delete;
g_enrld_anthr_pgm_instance.delete;
g_enrld_anthr_ptip_lookup.delete;
g_enrld_anthr_ptip_instance.delete;
g_enrld_anthr_plip_lookup.delete;
g_enrld_anthr_plip_instance.delete;
g_enrld_anthr_oipl_lookup.delete;
g_enrld_anthr_oipl_instance.delete;
g_enrld_anthr_pl_lookup.delete;
g_enrld_anthr_pl_instance.delete;
g_othr_ptip_lookup.delete;
g_othr_ptip_instance.delete;
g_prtt_anthr_pl_lookup.delete;
g_prtt_anthr_pl_instance.delete;
g_dpnt_cvrd_othr_pgm_lookup.delete;
g_dpnt_cvrd_othr_pgm_instance.delete;
g_dpnt_cvrd_othr_ptip_lookup.delete;
g_dpnt_cvrd_othr_ptip_instance.delete;
g_dpnt_cvrd_othr_plip_lookup.delete;
g_dpnt_cvrd_othr_plip_instance.delete;
g_dpnt_cvrd_othr_pl_lookup.delete;
g_dpnt_cvrd_othr_pl_instance.delete;
g_qua_in_gr_lookup.delete;
g_qua_in_gr_instance.delete;
g_perf_rtng_lookup.delete;
g_perf_rtng_instance.delete;
g_poe_lookup.delete;
g_poe_instance.delete;