The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
lee_rsn_id,
effective_start_date,
effective_end_date,
business_group_id,
popl_enrt_typ_cycl_id,
ler_id,
cls_enrt_dt_to_use_cd,
dys_aftr_end_to_dflt_num,
enrt_cvg_end_dt_cd,
enrt_cvg_strt_dt_cd,
enrt_perd_strt_dt_cd,
enrt_perd_strt_dt_rl,
enrt_perd_end_dt_cd,
enrt_perd_end_dt_rl,
addl_procg_dys_num,
dys_no_enrl_not_elig_num,
dys_no_enrl_cant_enrl_num,
rt_end_dt_cd,
rt_end_dt_rl,
rt_strt_dt_cd,
rt_strt_dt_rl,
enrt_cvg_end_dt_rl,
enrt_cvg_strt_dt_rl,
len_attribute_category,
len_attribute1,
len_attribute2,
len_attribute3,
len_attribute4,
len_attribute5,
len_attribute6,
len_attribute7,
len_attribute8,
len_attribute9,
len_attribute10,
len_attribute11,
len_attribute12,
len_attribute13,
len_attribute14,
len_attribute15,
len_attribute16,
len_attribute17,
len_attribute18,
len_attribute19,
len_attribute20,
len_attribute21,
len_attribute22,
len_attribute23,
len_attribute24,
len_attribute25,
len_attribute26,
len_attribute27,
len_attribute28,
len_attribute29,
len_attribute30,
object_version_number,
enrt_perd_det_ovrlp_bckdt_cd,
reinstate_cd,
reinstate_ovrdn_cd ,
reopen_le_on_reprocess,
ENRT_PERD_STRT_DAYS,
ENRT_PERD_END_DAYS,
defer_deenrol_flag
from ben_lee_rsn_f
where lee_rsn_id = p_lee_rsn_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.popl_enrt_typ_cycl_id
from ben_lee_rsn_f t
where t.lee_rsn_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_lee_rsn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.lee_rsn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
lee_rsn_id,
effective_start_date,
effective_end_date,
business_group_id,
popl_enrt_typ_cycl_id,
ler_id,
cls_enrt_dt_to_use_cd,
dys_aftr_end_to_dflt_num,
enrt_cvg_end_dt_cd,
enrt_cvg_strt_dt_cd,
enrt_perd_strt_dt_cd,
enrt_perd_strt_dt_rl,
enrt_perd_end_dt_cd,
enrt_perd_end_dt_rl,
addl_procg_dys_num,
dys_no_enrl_not_elig_num,
dys_no_enrl_cant_enrl_num,
rt_end_dt_cd,
rt_end_dt_rl,
rt_strt_dt_cd,
rt_strt_dt_rl,
enrt_cvg_end_dt_rl,
enrt_cvg_strt_dt_rl,
len_attribute_category,
len_attribute1,
len_attribute2,
len_attribute3,
len_attribute4,
len_attribute5,
len_attribute6,
len_attribute7,
len_attribute8,
len_attribute9,
len_attribute10,
len_attribute11,
len_attribute12,
len_attribute13,
len_attribute14,
len_attribute15,
len_attribute16,
len_attribute17,
len_attribute18,
len_attribute19,
len_attribute20,
len_attribute21,
len_attribute22,
len_attribute23,
len_attribute24,
len_attribute25,
len_attribute26,
len_attribute27,
len_attribute28,
len_attribute29,
len_attribute30,
object_version_number ,
enrt_perd_det_ovrlp_bckdt_cd,
reinstate_cd,
reinstate_ovrdn_cd ,
reopen_le_on_reprocess,
ENRT_PERD_STRT_DAYS ,
ENRT_PERD_END_DAYS,
defer_deenrol_flag
from ben_lee_rsn_f
where lee_rsn_id = p_lee_rsn_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;