The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
cmbn_ptip_opt_id,
effective_start_date,
effective_end_date,
name,
business_group_id,
cpt_attribute_category,
cpt_attribute1,
cpt_attribute2,
cpt_attribute3,
cpt_attribute4,
cpt_attribute5,
cpt_attribute6,
cpt_attribute7,
cpt_attribute8,
cpt_attribute9,
cpt_attribute10,
cpt_attribute11,
cpt_attribute12,
cpt_attribute13,
cpt_attribute14,
cpt_attribute15,
cpt_attribute16,
cpt_attribute17,
cpt_attribute18,
cpt_attribute19,
cpt_attribute20,
cpt_attribute21,
cpt_attribute22,
cpt_attribute23,
cpt_attribute24,
cpt_attribute25,
cpt_attribute26,
cpt_attribute27,
cpt_attribute28,
cpt_attribute29,
cpt_attribute30,
object_version_number,
ptip_id,
pgm_id,
opt_id
from ben_cmbn_ptip_opt_f
where cmbn_ptip_opt_id = p_cmbn_ptip_opt_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';
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_cmbn_ptip_opt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.cmbn_ptip_opt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
cmbn_ptip_opt_id,
effective_start_date,
effective_end_date,
name,
business_group_id,
cpt_attribute_category,
cpt_attribute1,
cpt_attribute2,
cpt_attribute3,
cpt_attribute4,
cpt_attribute5,
cpt_attribute6,
cpt_attribute7,
cpt_attribute8,
cpt_attribute9,
cpt_attribute10,
cpt_attribute11,
cpt_attribute12,
cpt_attribute13,
cpt_attribute14,
cpt_attribute15,
cpt_attribute16,
cpt_attribute17,
cpt_attribute18,
cpt_attribute19,
cpt_attribute20,
cpt_attribute21,
cpt_attribute22,
cpt_attribute23,
cpt_attribute24,
cpt_attribute25,
cpt_attribute26,
cpt_attribute27,
cpt_attribute28,
cpt_attribute29,
cpt_attribute30,
object_version_number,
ptip_id,
pgm_id,
opt_id
from ben_cmbn_ptip_opt_f
where cmbn_ptip_opt_id = p_cmbn_ptip_opt_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;