The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ELIG_PRBTN_PERD_PRTE_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
probation_period,
probation_unit,
eligy_prfl_id,
business_group_id,
epn_attribute_category,
epn_attribute1,
epn_attribute2,
epn_attribute3,
epn_attribute4,
epn_attribute5,
epn_attribute6,
epn_attribute7,
epn_attribute8,
epn_attribute9,
epn_attribute10,
epn_attribute11,
epn_attribute12,
epn_attribute13,
epn_attribute14,
epn_attribute15,
epn_attribute16,
epn_attribute17,
epn_attribute18,
epn_attribute19,
epn_attribute20,
epn_attribute21,
epn_attribute22,
epn_attribute23,
epn_attribute24,
epn_attribute25,
epn_attribute26,
epn_attribute27,
epn_attribute28,
epn_attribute29,
epn_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_ELIG_PRBTN_PERD_PRTE_f
where ELIG_PRBTN_PERD_PRTE_id = p_ELIG_PRBTN_PERD_PRTE_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_ELIG_PRBTN_PERD_PRTE_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ELIG_PRBTN_PERD_PRTE_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ELIG_PRBTN_PERD_PRTE_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
PROBATION_PERIOD,
probation_unit,
eligy_prfl_id,
business_group_id,
epn_attribute_category,
epn_attribute1,
epn_attribute2,
epn_attribute3,
epn_attribute4,
epn_attribute5,
epn_attribute6,
epn_attribute7,
epn_attribute8,
epn_attribute9,
epn_attribute10,
epn_attribute11,
epn_attribute12,
epn_attribute13,
epn_attribute14,
epn_attribute15,
epn_attribute16,
epn_attribute17,
epn_attribute18,
epn_attribute19,
epn_attribute20,
epn_attribute21,
epn_attribute22,
epn_attribute23,
epn_attribute24,
epn_attribute25,
epn_attribute26,
epn_attribute27,
epn_attribute28,
epn_attribute29,
epn_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_ELIG_PRBTN_PERD_PRTE_f
where ELIG_PRBTN_PERD_PRTE_id = p_ELIG_PRBTN_PERD_PRTE_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;