The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
prtl_mo_rt_prtn_val_id,
effective_end_date,
effective_start_date,
business_group_id,
rndg_cd,
to_dy_mo_num,
from_dy_mo_num,
pct_val,
acty_base_rt_id,
strt_r_stp_cvg_cd,
rndg_rl,
prtl_mo_prortn_rl,
actl_prem_id,
cvg_amt_calc_mthd_id,
num_days_month,
prorate_by_day_to_mon_flag,
pmrpv_attribute_category,
pmrpv_attribute1,
pmrpv_attribute2,
pmrpv_attribute3,
pmrpv_attribute4,
pmrpv_attribute5,
pmrpv_attribute6,
pmrpv_attribute7,
pmrpv_attribute8,
pmrpv_attribute9,
pmrpv_attribute10,
pmrpv_attribute11,
pmrpv_attribute12,
pmrpv_attribute13,
pmrpv_attribute14,
pmrpv_attribute15,
pmrpv_attribute16,
pmrpv_attribute17,
pmrpv_attribute18,
pmrpv_attribute19,
pmrpv_attribute20,
pmrpv_attribute21,
pmrpv_attribute22,
pmrpv_attribute23,
pmrpv_attribute24,
pmrpv_attribute25,
pmrpv_attribute26,
pmrpv_attribute27,
pmrpv_attribute28,
pmrpv_attribute29,
pmrpv_attribute30,
object_version_number
from ben_prtl_mo_rt_prtn_val_f
where prtl_mo_rt_prtn_val_id = p_prtl_mo_rt_prtn_val_id
and p_effective_date
between effective_start_date and effective_end_date;
p_delete out nocopy boolean,
p_future_change out nocopy boolean,
p_delete_next_change out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_del_modes';
select t.actl_prem_id,
t.cvg_amt_calc_mthd_id,
t.acty_base_rt_id
from ben_prtl_mo_rt_prtn_val_f t
where t.prtl_mo_rt_prtn_val_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
p_delete => p_delete,
p_future_change => p_future_change,
p_delete_next_change => p_delete_next_change);
p_update out nocopy boolean,
p_update_override out nocopy boolean,
p_update_change_insert out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_upd_modes';
p_update => p_update,
p_update_override => p_update_override,
p_update_change_insert => p_update_change_insert);
update ben_prtl_mo_rt_prtn_val_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.prtl_mo_rt_prtn_val_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
prtl_mo_rt_prtn_val_id,
effective_end_date,
effective_start_date,
business_group_id,
rndg_cd,
to_dy_mo_num,
from_dy_mo_num,
pct_val,
acty_base_rt_id,
strt_r_stp_cvg_cd,
rndg_rl,
prtl_mo_prortn_rl,
actl_prem_id,
cvg_amt_calc_mthd_id,
num_days_month,
prorate_by_day_to_mon_flag,
pmrpv_attribute_category,
pmrpv_attribute1,
pmrpv_attribute2,
pmrpv_attribute3,
pmrpv_attribute4,
pmrpv_attribute5,
pmrpv_attribute6,
pmrpv_attribute7,
pmrpv_attribute8,
pmrpv_attribute9,
pmrpv_attribute10,
pmrpv_attribute11,
pmrpv_attribute12,
pmrpv_attribute13,
pmrpv_attribute14,
pmrpv_attribute15,
pmrpv_attribute16,
pmrpv_attribute17,
pmrpv_attribute18,
pmrpv_attribute19,
pmrpv_attribute20,
pmrpv_attribute21,
pmrpv_attribute22,
pmrpv_attribute23,
pmrpv_attribute24,
pmrpv_attribute25,
pmrpv_attribute26,
pmrpv_attribute27,
pmrpv_attribute28,
pmrpv_attribute29,
pmrpv_attribute30,
object_version_number
from ben_prtl_mo_rt_prtn_val_f
where prtl_mo_rt_prtn_val_id = p_prtl_mo_rt_prtn_val_id
and p_effective_date
between effective_start_date and effective_end_date
for update nowait;
If (p_datetrack_mode <> 'INSERT') then
--
-- We must select and lock the current row.
--
Open C_Sel1;