The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
acty_base_rt_ctfn_id,
effective_start_date,
effective_end_date,
enrt_ctfn_typ_cd,
ctfn_rqd_when_rl,
rqd_flag,
acty_base_rt_id,
business_group_id,
abc_attribute_category,
abc_attribute1,
abc_attribute2,
abc_attribute3,
abc_attribute4,
abc_attribute5,
abc_attribute6,
abc_attribute7,
abc_attribute8,
abc_attribute9,
abc_attribute10,
abc_attribute11,
abc_attribute12,
abc_attribute13,
abc_attribute14,
abc_attribute15,
abc_attribute16,
abc_attribute17,
abc_attribute18,
abc_attribute19,
abc_attribute20,
abc_attribute21,
abc_attribute22,
abc_attribute23,
abc_attribute24,
abc_attribute25,
abc_attribute26,
abc_attribute27,
abc_attribute28,
abc_attribute29,
abc_attribute30,
object_version_number
from ben_acty_base_rt_ctfn_f
where acty_base_rt_ctfn_id = p_acty_base_rt_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.acty_base_rt_id
from ben_acty_base_rt_ctfn_f t
where t.acty_base_rt_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_acty_base_rt_ctfn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.acty_base_rt_ctfn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
acty_base_rt_ctfn_id,
effective_start_date,
effective_end_date,
enrt_ctfn_typ_cd,
ctfn_rqd_when_rl,
rqd_flag,
acty_base_rt_id,
business_group_id,
abc_attribute_category,
abc_attribute1,
abc_attribute2,
abc_attribute3,
abc_attribute4,
abc_attribute5,
abc_attribute6,
abc_attribute7,
abc_attribute8,
abc_attribute9,
abc_attribute10,
abc_attribute11,
abc_attribute12,
abc_attribute13,
abc_attribute14,
abc_attribute15,
abc_attribute16,
abc_attribute17,
abc_attribute18,
abc_attribute19,
abc_attribute20,
abc_attribute21,
abc_attribute22,
abc_attribute23,
abc_attribute24,
abc_attribute25,
abc_attribute26,
abc_attribute27,
abc_attribute28,
abc_attribute29,
abc_attribute30,
object_version_number
from ben_acty_base_rt_ctfn_f
where acty_base_rt_ctfn_id = p_acty_base_rt_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;