The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ELIG_COMPTNCY_PRTE_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
competence_id,
rating_level_id,
eligy_prfl_id,
business_group_id,
ecy_attribute_category,
ecy_attribute1,
ecy_attribute2,
ecy_attribute3,
ecy_attribute4,
ecy_attribute5,
ecy_attribute6,
ecy_attribute7,
ecy_attribute8,
ecy_attribute9,
ecy_attribute10,
ecy_attribute11,
ecy_attribute12,
ecy_attribute13,
ecy_attribute14,
ecy_attribute15,
ecy_attribute16,
ecy_attribute17,
ecy_attribute18,
ecy_attribute19,
ecy_attribute20,
ecy_attribute21,
ecy_attribute22,
ecy_attribute23,
ecy_attribute24,
ecy_attribute25,
ecy_attribute26,
ecy_attribute27,
ecy_attribute28,
ecy_attribute29,
ecy_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_ELIG_COMPTNCY_PRTE_f
where ELIG_COMPTNCY_PRTE_id = p_ELIG_COMPTNCY_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_COMPTNCY_PRTE_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ELIG_COMPTNCY_PRTE_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ELIG_COMPTNCY_PRTE_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
competence_id,
rating_level_id,
eligy_prfl_id,
business_group_id,
ecy_attribute_category,
ecy_attribute1,
ecy_attribute2,
ecy_attribute3,
ecy_attribute4,
ecy_attribute5,
ecy_attribute6,
ecy_attribute7,
ecy_attribute8,
ecy_attribute9,
ecy_attribute10,
ecy_attribute11,
ecy_attribute12,
ecy_attribute13,
ecy_attribute14,
ecy_attribute15,
ecy_attribute16,
ecy_attribute17,
ecy_attribute18,
ecy_attribute19,
ecy_attribute20,
ecy_attribute21,
ecy_attribute22,
ecy_attribute23,
ecy_attribute24,
ecy_attribute25,
ecy_attribute26,
ecy_attribute27,
ecy_attribute28,
ecy_attribute29,
ecy_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_ELIG_COMPTNCY_PRTE_f
where ELIG_COMPTNCY_PRTE_id = p_ELIG_COMPTNCY_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;