The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
enrld_anthr_pgm_rt_id,
effective_start_date,
effective_end_date,
ordr_num,
excld_flag,
enrl_det_dt_cd,
pgm_id,
vrbl_rt_prfl_id,
business_group_id,
epm_attribute_category,
epm_attribute1,
epm_attribute2,
epm_attribute3,
epm_attribute4,
epm_attribute5,
epm_attribute6,
epm_attribute7,
epm_attribute8,
epm_attribute9,
epm_attribute10,
epm_attribute11,
epm_attribute12,
epm_attribute13,
epm_attribute14,
epm_attribute15,
epm_attribute16,
epm_attribute17,
epm_attribute18,
epm_attribute19,
epm_attribute20,
epm_attribute21,
epm_attribute22,
epm_attribute23,
epm_attribute24,
epm_attribute25,
epm_attribute26,
epm_attribute27,
epm_attribute28,
epm_attribute29,
epm_attribute30,
object_version_number
from ben_enrld_anthr_pgm_rt_f
where enrld_anthr_pgm_rt_id = p_enrld_anthr_pgm_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.pgm_id
from ben_enrld_anthr_pgm_rt_f t
where t.enrld_anthr_pgm_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_pgm_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_pgm_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
enrld_anthr_pgm_rt_id,
effective_start_date,
effective_end_date,
ordr_num,
excld_flag,
enrl_det_dt_cd,
pgm_id,
vrbl_rt_prfl_id,
business_group_id,
epm_attribute_category,
epm_attribute1,
epm_attribute2,
epm_attribute3,
epm_attribute4,
epm_attribute5,
epm_attribute6,
epm_attribute7,
epm_attribute8,
epm_attribute9,
epm_attribute10,
epm_attribute11,
epm_attribute12,
epm_attribute13,
epm_attribute14,
epm_attribute15,
epm_attribute16,
epm_attribute17,
epm_attribute18,
epm_attribute19,
epm_attribute20,
epm_attribute21,
epm_attribute22,
epm_attribute23,
epm_attribute24,
epm_attribute25,
epm_attribute26,
epm_attribute27,
epm_attribute28,
epm_attribute29,
epm_attribute30,
object_version_number
from ben_enrld_anthr_pgm_rt_f
where enrld_anthr_pgm_rt_id = p_enrld_anthr_pgm_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;