The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
actl_prem_id,
effective_start_date,
effective_end_date,
name,
acty_ref_perd_cd,
uom,
rt_typ_cd,
bnft_rt_typ_cd,
val,
mlt_cd,
prdct_cd,
rndg_cd,
rndg_rl,
val_calc_rl,
prem_asnmt_cd,
prem_asnmt_lvl_cd,
actl_prem_typ_cd,
prem_pyr_cd,
cr_lkbk_val,
cr_lkbk_uom,
cr_lkbk_crnt_py_only_flag,
prsptv_r_rtsptv_cd,
upr_lmt_val,
upr_lmt_calc_rl,
lwr_lmt_val,
lwr_lmt_calc_rl,
cost_allocation_keyflex_id,
organization_id,
oipl_id,
pl_id,
comp_lvl_fctr_id,
business_group_id,
prtl_mo_det_mthd_cd,
prtl_mo_det_mthd_rl,
wsh_rl_dy_mo_num,
vrbl_rt_add_on_calc_rl,
apr_attribute_category,
apr_attribute1,
apr_attribute2,
apr_attribute3,
apr_attribute4,
apr_attribute5,
apr_attribute6,
apr_attribute7,
apr_attribute8,
apr_attribute9,
apr_attribute10,
apr_attribute11,
apr_attribute12,
apr_attribute13,
apr_attribute14,
apr_attribute15,
apr_attribute16,
apr_attribute17,
apr_attribute18,
apr_attribute19,
apr_attribute20,
apr_attribute21,
apr_attribute22,
apr_attribute23,
apr_attribute24,
apr_attribute25,
apr_attribute26,
apr_attribute27,
apr_attribute28,
apr_attribute29,
apr_attribute30,
object_version_number
from ben_actl_prem_f
where actl_prem_id = p_actl_prem_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.comp_lvl_fctr_id
from ben_actl_prem_f t
where t.actl_prem_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_actl_prem_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.actl_prem_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
actl_prem_id,
effective_start_date,
effective_end_date,
name,
acty_ref_perd_cd,
uom,
rt_typ_cd,
bnft_rt_typ_cd,
val,
mlt_cd,
prdct_cd,
rndg_cd,
rndg_rl,
val_calc_rl,
prem_asnmt_cd,
prem_asnmt_lvl_cd,
actl_prem_typ_cd,
prem_pyr_cd,
cr_lkbk_val,
cr_lkbk_uom,
cr_lkbk_crnt_py_only_flag,
prsptv_r_rtsptv_cd,
upr_lmt_val,
upr_lmt_calc_rl,
lwr_lmt_val,
lwr_lmt_calc_rl,
cost_allocation_keyflex_id,
organization_id,
oipl_id,
pl_id,
comp_lvl_fctr_id,
business_group_id,
prtl_mo_det_mthd_cd,
prtl_mo_det_mthd_rl,
wsh_rl_dy_mo_num,
vrbl_rt_add_on_calc_rl,
apr_attribute_category,
apr_attribute1,
apr_attribute2,
apr_attribute3,
apr_attribute4,
apr_attribute5,
apr_attribute6,
apr_attribute7,
apr_attribute8,
apr_attribute9,
apr_attribute10,
apr_attribute11,
apr_attribute12,
apr_attribute13,
apr_attribute14,
apr_attribute15,
apr_attribute16,
apr_attribute17,
apr_attribute18,
apr_attribute19,
apr_attribute20,
apr_attribute21,
apr_attribute22,
apr_attribute23,
apr_attribute24,
apr_attribute25,
apr_attribute26,
apr_attribute27,
apr_attribute28,
apr_attribute29,
apr_attribute30,
object_version_number
from ben_actl_prem_f
where actl_prem_id = p_actl_prem_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;