The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
pl_regn_id,
effective_end_date,
effective_start_date,
business_group_id,
regn_id,
pl_id,
rptg_grp_id,
hghly_compd_det_rl,
key_ee_det_rl,
cntr_nndscrn_rl,
cvg_nndscrn_rl,
five_pct_ownr_rl,
regy_pl_typ_cd,
prg_attribute_category,
prg_attribute1,
prg_attribute2,
prg_attribute3,
prg_attribute4,
prg_attribute5,
prg_attribute6,
prg_attribute7,
prg_attribute8,
prg_attribute9,
prg_attribute10,
prg_attribute11,
prg_attribute12,
prg_attribute13,
prg_attribute14,
prg_attribute15,
prg_attribute16,
prg_attribute17,
prg_attribute18,
prg_attribute19,
prg_attribute20,
prg_attribute21,
prg_attribute22,
prg_attribute23,
prg_attribute24,
prg_attribute25,
prg_attribute26,
prg_attribute27,
prg_attribute28,
prg_attribute29,
prg_attribute30,
object_version_number
from ben_pl_regn_f
where pl_regn_id = p_pl_regn_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.hghly_compd_det_rl,
t.key_ee_det_rl,
t.cntr_nndscrn_rl,
t.cvg_nndscrn_rl,
t.five_pct_ownr_rl,
t.regn_id,
t.pl_id
from ben_pl_regn_f t
where t.pl_regn_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_pl_regn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.pl_regn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
pl_regn_id,
effective_end_date,
effective_start_date,
business_group_id,
regn_id,
pl_id,
rptg_grp_id,
hghly_compd_det_rl,
key_ee_det_rl,
cntr_nndscrn_rl,
cvg_nndscrn_rl,
five_pct_ownr_rl,
regy_pl_typ_cd,
prg_attribute_category,
prg_attribute1,
prg_attribute2,
prg_attribute3,
prg_attribute4,
prg_attribute5,
prg_attribute6,
prg_attribute7,
prg_attribute8,
prg_attribute9,
prg_attribute10,
prg_attribute11,
prg_attribute12,
prg_attribute13,
prg_attribute14,
prg_attribute15,
prg_attribute16,
prg_attribute17,
prg_attribute18,
prg_attribute19,
prg_attribute20,
prg_attribute21,
prg_attribute22,
prg_attribute23,
prg_attribute24,
prg_attribute25,
prg_attribute26,
prg_attribute27,
prg_attribute28,
prg_attribute29,
prg_attribute30,
object_version_number
from ben_pl_regn_f
where pl_regn_id = p_pl_regn_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;