The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
acrs_ptip_cvg_id,
effective_start_date,
effective_end_date,
name,
mx_cvg_alwd_amt,
mn_cvg_alwd_amt,
pgm_id,
business_group_id,
apc_attribute_category,
apc_attribute1,
apc_attribute2,
apc_attribute3,
apc_attribute4,
apc_attribute5,
apc_attribute6,
apc_attribute7,
apc_attribute8,
apc_attribute9,
apc_attribute10,
apc_attribute11,
apc_attribute12,
apc_attribute13,
apc_attribute14,
apc_attribute15,
apc_attribute16,
apc_attribute17,
apc_attribute18,
apc_attribute19,
apc_attribute20,
apc_attribute21,
apc_attribute22,
apc_attribute23,
apc_attribute24,
apc_attribute25,
apc_attribute26,
apc_attribute27,
apc_attribute28,
apc_attribute29,
apc_attribute30,
object_version_number
from ben_acrs_ptip_cvg_f
where acrs_ptip_cvg_id = p_acrs_ptip_cvg_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_acrs_ptip_cvg_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.acrs_ptip_cvg_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
acrs_ptip_cvg_id,
effective_start_date,
effective_end_date,
name,
mx_cvg_alwd_amt,
mn_cvg_alwd_amt,
pgm_id,
business_group_id,
apc_attribute_category,
apc_attribute1,
apc_attribute2,
apc_attribute3,
apc_attribute4,
apc_attribute5,
apc_attribute6,
apc_attribute7,
apc_attribute8,
apc_attribute9,
apc_attribute10,
apc_attribute11,
apc_attribute12,
apc_attribute13,
apc_attribute14,
apc_attribute15,
apc_attribute16,
apc_attribute17,
apc_attribute18,
apc_attribute19,
apc_attribute20,
apc_attribute21,
apc_attribute22,
apc_attribute23,
apc_attribute24,
apc_attribute25,
apc_attribute26,
apc_attribute27,
apc_attribute28,
apc_attribute29,
apc_attribute30,
object_version_number
from ben_acrs_ptip_cvg_f
where acrs_ptip_cvg_id = p_acrs_ptip_cvg_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;