The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ELIG_QUA_IN_GR_PRTE_id,
quar_in_grade_cd,
effective_start_date,
effective_end_date,
ordr_num,
excld_flag,
eligy_prfl_id ,
business_group_id,
eqg_attribute_category,
eqg_attribute1,
eqg_attribute2,
eqg_attribute3,
eqg_attribute4,
eqg_attribute5,
eqg_attribute6,
eqg_attribute7,
eqg_attribute8,
eqg_attribute9,
eqg_attribute10,
eqg_attribute11,
eqg_attribute12,
eqg_attribute13,
eqg_attribute14,
eqg_attribute15,
eqg_attribute16,
eqg_attribute17,
eqg_attribute18,
eqg_attribute19,
eqg_attribute20,
eqg_attribute21,
eqg_attribute22,
eqg_attribute23,
eqg_attribute24,
eqg_attribute25,
eqg_attribute26,
eqg_attribute27,
eqg_attribute28,
eqg_attribute29,
eqg_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_ELIG_QUA_IN_GR_PRTE_f
where ELIG_QUA_IN_GR_PRTE_id = p_ELIG_QUA_IN_GR_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';
select t.eligy_prfl_id
from ben_ELIG_QUA_IN_GR_PRTE_f t
where t.ELIG_QUA_IN_GR_PRTE_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_ELIG_QUA_IN_GR_PRTE_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ELIG_QUA_IN_GR_PRTE_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ELIG_QUA_IN_GR_PRTE_id,
quar_in_grade_cd,
effective_start_date,
effective_end_date,
ordr_num,
excld_flag,
eligy_prfl_id ,
business_group_id,
eqg_attribute_category,
eqg_attribute1,
eqg_attribute2,
eqg_attribute3,
eqg_attribute4,
eqg_attribute5,
eqg_attribute6,
eqg_attribute7,
eqg_attribute8,
eqg_attribute9,
eqg_attribute10,
eqg_attribute11,
eqg_attribute12,
eqg_attribute13,
eqg_attribute14,
eqg_attribute15,
eqg_attribute16,
eqg_attribute17,
eqg_attribute18,
eqg_attribute19,
eqg_attribute20,
eqg_attribute21,
eqg_attribute22,
eqg_attribute23,
eqg_attribute24,
eqg_attribute25,
eqg_attribute26,
eqg_attribute27,
eqg_attribute28,
eqg_attribute29,
eqg_attribute30,
object_version_number ,
criteria_score,
criteria_weight
from ben_ELIG_QUA_IN_GR_PRTE_f
where ELIG_QUA_IN_GR_PRTE_id = p_ELIG_QUA_IN_GR_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;