The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ler_bnft_rstrn_ctfn_id,
effective_start_date,
effective_end_date,
rqd_flag,
enrt_ctfn_typ_cd,
ctfn_rqd_when_rl,
ler_bnft_rstrn_id,
business_group_id,
lbc_attribute_category,
lbc_attribute1,
lbc_attribute2,
lbc_attribute3,
lbc_attribute4,
lbc_attribute5,
lbc_attribute6,
lbc_attribute7,
lbc_attribute8,
lbc_attribute9,
lbc_attribute10,
lbc_attribute11,
lbc_attribute12,
lbc_attribute13,
lbc_attribute14,
lbc_attribute15,
lbc_attribute16,
lbc_attribute17,
lbc_attribute18,
lbc_attribute19,
lbc_attribute20,
lbc_attribute21,
lbc_attribute22,
lbc_attribute23,
lbc_attribute24,
lbc_attribute25,
lbc_attribute26,
lbc_attribute27,
lbc_attribute28,
lbc_attribute29,
lbc_attribute30,
object_version_number
from ben_ler_bnft_rstrn_ctfn_f
where ler_bnft_rstrn_ctfn_id = p_ler_bnft_rstrn_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.ler_bnft_rstrn_id
from ben_ler_bnft_rstrn_ctfn_f t
where t.ler_bnft_rstrn_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_bnft_rstrn_ctfn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ler_bnft_rstrn_ctfn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ler_bnft_rstrn_ctfn_id,
effective_start_date,
effective_end_date,
rqd_flag,
enrt_ctfn_typ_cd,
ctfn_rqd_when_rl,
ler_bnft_rstrn_id,
business_group_id,
lbc_attribute_category,
lbc_attribute1,
lbc_attribute2,
lbc_attribute3,
lbc_attribute4,
lbc_attribute5,
lbc_attribute6,
lbc_attribute7,
lbc_attribute8,
lbc_attribute9,
lbc_attribute10,
lbc_attribute11,
lbc_attribute12,
lbc_attribute13,
lbc_attribute14,
lbc_attribute15,
lbc_attribute16,
lbc_attribute17,
lbc_attribute18,
lbc_attribute19,
lbc_attribute20,
lbc_attribute21,
lbc_attribute22,
lbc_attribute23,
lbc_attribute24,
lbc_attribute25,
lbc_attribute26,
lbc_attribute27,
lbc_attribute28,
lbc_attribute29,
lbc_attribute30,
object_version_number
from ben_ler_bnft_rstrn_ctfn_f
where ler_bnft_rstrn_ctfn_id = p_ler_bnft_rstrn_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;