The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ler_rqrs_enrt_ctfn_id,
effective_start_date,
effective_end_date,
excld_flag,
ctfn_rqd_when_rl,
ler_id,
pl_id,
oipl_id,
business_group_id,
lre_attribute_category,
lre_attribute1,
lre_attribute2,
lre_attribute3,
lre_attribute4,
lre_attribute5,
lre_attribute6,
lre_attribute7,
lre_attribute8,
lre_attribute9,
lre_attribute10,
lre_attribute11,
lre_attribute12,
lre_attribute13,
lre_attribute14,
lre_attribute15,
lre_attribute16,
lre_attribute17,
lre_attribute18,
lre_attribute19,
lre_attribute20,
lre_attribute21,
lre_attribute22,
lre_attribute23,
lre_attribute24,
lre_attribute25,
lre_attribute26,
lre_attribute27,
lre_attribute28,
lre_attribute29,
lre_attribute30,
susp_if_ctfn_not_prvd_flag,
ctfn_determine_cd,
object_version_number
from ben_ler_rqrs_enrt_ctfn_f
where ler_rqrs_enrt_ctfn_id = p_ler_rqrs_enrt_ctfn_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.pl_id,
t.oipl_id,
t.ler_id
from ben_ler_rqrs_enrt_ctfn_f t
where t.ler_rqrs_enrt_ctfn_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_ler_rqrs_enrt_ctfn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ler_rqrs_enrt_ctfn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ler_rqrs_enrt_ctfn_id,
effective_start_date,
effective_end_date,
excld_flag,
ctfn_rqd_when_rl,
ler_id,
pl_id,
oipl_id,
business_group_id,
lre_attribute_category,
lre_attribute1,
lre_attribute2,
lre_attribute3,
lre_attribute4,
lre_attribute5,
lre_attribute6,
lre_attribute7,
lre_attribute8,
lre_attribute9,
lre_attribute10,
lre_attribute11,
lre_attribute12,
lre_attribute13,
lre_attribute14,
lre_attribute15,
lre_attribute16,
lre_attribute17,
lre_attribute18,
lre_attribute19,
lre_attribute20,
lre_attribute21,
lre_attribute22,
lre_attribute23,
lre_attribute24,
lre_attribute25,
lre_attribute26,
lre_attribute27,
lre_attribute28,
lre_attribute29,
lre_attribute30,
susp_if_ctfn_not_prvd_flag,
ctfn_determine_cd,
object_version_number
from ben_ler_rqrs_enrt_ctfn_f
where ler_rqrs_enrt_ctfn_id = p_ler_rqrs_enrt_ctfn_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;