The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ptip_dpnt_cvg_ctfn_id,
effective_start_date,
effective_end_date,
business_group_id,
ptip_id,
pfd_flag,
lack_ctfn_sspnd_enrt_flag,
ctfn_rqd_when_rl,
dpnt_cvg_ctfn_typ_cd,
rlshp_typ_cd,
rqd_flag,
pyd_attribute_category,
pyd_attribute1,
pyd_attribute2,
pyd_attribute3,
pyd_attribute4,
pyd_attribute5,
pyd_attribute6,
pyd_attribute7,
pyd_attribute8,
pyd_attribute9,
pyd_attribute10,
pyd_attribute11,
pyd_attribute12,
pyd_attribute13,
pyd_attribute14,
pyd_attribute15,
pyd_attribute16,
pyd_attribute17,
pyd_attribute18,
pyd_attribute19,
pyd_attribute20,
pyd_attribute21,
pyd_attribute22,
pyd_attribute23,
pyd_attribute24,
pyd_attribute25,
pyd_attribute26,
pyd_attribute27,
pyd_attribute28,
pyd_attribute29,
pyd_attribute30,
object_version_number
from ben_ptip_dpnt_cvg_ctfn_f
where ptip_dpnt_cvg_ctfn_id = p_ptip_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.ptip_id
from ben_ptip_dpnt_cvg_ctfn_f t
where t.ptip_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_ptip_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.ptip_dpnt_cvg_ctfn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ptip_dpnt_cvg_ctfn_id,
effective_start_date,
effective_end_date,
business_group_id,
ptip_id,
pfd_flag,
lack_ctfn_sspnd_enrt_flag,
ctfn_rqd_when_rl,
dpnt_cvg_ctfn_typ_cd,
rlshp_typ_cd,
rqd_flag,
pyd_attribute_category,
pyd_attribute1,
pyd_attribute2,
pyd_attribute3,
pyd_attribute4,
pyd_attribute5,
pyd_attribute6,
pyd_attribute7,
pyd_attribute8,
pyd_attribute9,
pyd_attribute10,
pyd_attribute11,
pyd_attribute12,
pyd_attribute13,
pyd_attribute14,
pyd_attribute15,
pyd_attribute16,
pyd_attribute17,
pyd_attribute18,
pyd_attribute19,
pyd_attribute20,
pyd_attribute21,
pyd_attribute22,
pyd_attribute23,
pyd_attribute24,
pyd_attribute25,
pyd_attribute26,
pyd_attribute27,
pyd_attribute28,
pyd_attribute29,
pyd_attribute30,
object_version_number
from ben_ptip_dpnt_cvg_ctfn_f
where ptip_dpnt_cvg_ctfn_id = p_ptip_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;