The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
enrt_perd_for_pl_id,
effective_start_date,
effective_end_date,
enrt_cvg_strt_dt_cd,
enrt_cvg_strt_dt_rl,
enrt_cvg_end_dt_cd,
enrt_cvg_end_dt_rl,
rt_strt_dt_cd,
rt_strt_dt_rl,
rt_end_dt_cd,
rt_end_dt_rl,
enrt_perd_id,
pl_id,
lee_rsn_id,
business_group_id,
erp_attribute_category,
erp_attribute1,
erp_attribute2,
erp_attribute3,
erp_attribute4,
erp_attribute5,
erp_attribute6,
erp_attribute7,
erp_attribute8,
erp_attribute9,
erp_attribute10,
erp_attribute11,
erp_attribute12,
erp_attribute13,
erp_attribute14,
erp_attribute15,
erp_attribute16,
erp_attribute17,
erp_attribute18,
erp_attribute19,
erp_attribute20,
erp_attribute21,
erp_attribute22,
erp_attribute23,
erp_attribute24,
erp_attribute25,
erp_attribute26,
erp_attribute27,
erp_attribute28,
erp_attribute29,
erp_attribute30,
object_version_number
from ben_enrt_perd_for_pl_f
where enrt_perd_for_pl_id = p_enrt_perd_for_pl_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.lee_rsn_id,
t.pl_id
from ben_enrt_perd_for_pl_f t
where t.enrt_perd_for_pl_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_enrt_perd_for_pl_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.enrt_perd_for_pl_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
enrt_perd_for_pl_id,
effective_start_date,
effective_end_date,
enrt_cvg_strt_dt_cd,
enrt_cvg_strt_dt_rl,
enrt_cvg_end_dt_cd,
enrt_cvg_end_dt_rl,
rt_strt_dt_cd,
rt_strt_dt_rl,
rt_end_dt_cd,
rt_end_dt_rl,
enrt_perd_id,
pl_id,
lee_rsn_id,
business_group_id,
erp_attribute_category,
erp_attribute1,
erp_attribute2,
erp_attribute3,
erp_attribute4,
erp_attribute5,
erp_attribute6,
erp_attribute7,
erp_attribute8,
erp_attribute9,
erp_attribute10,
erp_attribute11,
erp_attribute12,
erp_attribute13,
erp_attribute14,
erp_attribute15,
erp_attribute16,
erp_attribute17,
erp_attribute18,
erp_attribute19,
erp_attribute20,
erp_attribute21,
erp_attribute22,
erp_attribute23,
erp_attribute24,
erp_attribute25,
erp_attribute26,
erp_attribute27,
erp_attribute28,
erp_attribute29,
erp_attribute30,
object_version_number
from ben_enrt_perd_for_pl_f
where enrt_perd_for_pl_id = p_enrt_perd_for_pl_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;