The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
pgm_dpnt_cvg_ctfn_id,
effective_start_date,
effective_end_date,
business_group_id,
pgm_id,
lack_ctfn_sspnd_enrt_flag,
ctfn_rqd_when_rl,
pfd_flag,
dpnt_cvg_ctfn_typ_cd,
rqd_flag,
rlshp_typ_cd,
pgc_attribute_category,
pgc_attribute1,
pgc_attribute2,
pgc_attribute3,
pgc_attribute4,
pgc_attribute5,
pgc_attribute6,
pgc_attribute7,
pgc_attribute8,
pgc_attribute9,
pgc_attribute10,
pgc_attribute11,
pgc_attribute12,
pgc_attribute13,
pgc_attribute14,
pgc_attribute15,
pgc_attribute16,
pgc_attribute17,
pgc_attribute18,
pgc_attribute19,
pgc_attribute20,
pgc_attribute21,
pgc_attribute22,
pgc_attribute23,
pgc_attribute24,
pgc_attribute25,
pgc_attribute26,
pgc_attribute27,
pgc_attribute28,
pgc_attribute29,
pgc_attribute30,
object_version_number
from ben_pgm_dpnt_cvg_ctfn_f
where pgm_dpnt_cvg_ctfn_id = p_pgm_dpnt_cvg_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.ctfn_rqd_when_rl,
t.pgm_id
from ben_pgm_dpnt_cvg_ctfn_f t
where t.pgm_dpnt_cvg_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_pgm_dpnt_cvg_ctfn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.pgm_dpnt_cvg_ctfn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
pgm_dpnt_cvg_ctfn_id,
effective_start_date,
effective_end_date,
business_group_id,
pgm_id,
lack_ctfn_sspnd_enrt_flag,
ctfn_rqd_when_rl,
pfd_flag,
dpnt_cvg_ctfn_typ_cd,
rqd_flag,
rlshp_typ_cd,
pgc_attribute_category,
pgc_attribute1,
pgc_attribute2,
pgc_attribute3,
pgc_attribute4,
pgc_attribute5,
pgc_attribute6,
pgc_attribute7,
pgc_attribute8,
pgc_attribute9,
pgc_attribute10,
pgc_attribute11,
pgc_attribute12,
pgc_attribute13,
pgc_attribute14,
pgc_attribute15,
pgc_attribute16,
pgc_attribute17,
pgc_attribute18,
pgc_attribute19,
pgc_attribute20,
pgc_attribute21,
pgc_attribute22,
pgc_attribute23,
pgc_attribute24,
pgc_attribute25,
pgc_attribute26,
pgc_attribute27,
pgc_attribute28,
pgc_attribute29,
pgc_attribute30,
object_version_number
from ben_pgm_dpnt_cvg_ctfn_f
where pgm_dpnt_cvg_ctfn_id = p_pgm_dpnt_cvg_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;