The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
enrld_anthr_pl_rt_id,
effective_start_date,
effective_end_date,
ordr_num,
excld_flag,
enrl_det_dt_cd,
business_group_id,
vrbl_rt_prfl_id,
pl_id,
enl_attribute_category,
enl_attribute1,
enl_attribute2,
enl_attribute3,
enl_attribute4,
enl_attribute5,
enl_attribute6,
enl_attribute7,
enl_attribute8,
enl_attribute9,
enl_attribute10,
enl_attribute11,
enl_attribute12,
enl_attribute13,
enl_attribute14,
enl_attribute15,
enl_attribute16,
enl_attribute17,
enl_attribute18,
enl_attribute19,
enl_attribute20,
enl_attribute21,
enl_attribute22,
enl_attribute23,
enl_attribute24,
enl_attribute25,
enl_attribute26,
enl_attribute27,
enl_attribute28,
enl_attribute29,
enl_attribute30,
object_version_number
from ben_enrld_anthr_pl_rt_f
where enrld_anthr_pl_rt_id = p_enrld_anthr_pl_rt_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.vrbl_rt_prfl_id,
t.pl_id
from ben_enrld_anthr_pl_rt_f t
where t.enrld_anthr_pl_rt_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_enrld_anthr_pl_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.enrld_anthr_pl_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
enrld_anthr_pl_rt_id,
effective_start_date,
effective_end_date,
ordr_num,
excld_flag,
enrl_det_dt_cd,
business_group_id,
vrbl_rt_prfl_id,
pl_id,
enl_attribute_category,
enl_attribute1,
enl_attribute2,
enl_attribute3,
enl_attribute4,
enl_attribute5,
enl_attribute6,
enl_attribute7,
enl_attribute8,
enl_attribute9,
enl_attribute10,
enl_attribute11,
enl_attribute12,
enl_attribute13,
enl_attribute14,
enl_attribute15,
enl_attribute16,
enl_attribute17,
enl_attribute18,
enl_attribute19,
enl_attribute20,
enl_attribute21,
enl_attribute22,
enl_attribute23,
enl_attribute24,
enl_attribute25,
enl_attribute26,
enl_attribute27,
enl_attribute28,
enl_attribute29,
enl_attribute30,
object_version_number
from ben_enrld_anthr_pl_rt_f
where enrld_anthr_pl_rt_id = p_enrld_anthr_pl_rt_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;