The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
elig_cmbn_age_los_prte_id,
effective_start_date,
effective_end_date,
business_group_id,
cmbn_age_los_fctr_id,
eligy_prfl_id,
excld_flag,
ordr_num,
mndtry_flag,
ecp_attribute_category,
ecp_attribute1,
ecp_attribute2,
ecp_attribute3,
ecp_attribute4,
ecp_attribute5,
ecp_attribute6,
ecp_attribute7,
ecp_attribute8,
ecp_attribute9,
ecp_attribute10,
ecp_attribute11,
ecp_attribute12,
ecp_attribute13,
ecp_attribute14,
ecp_attribute15,
ecp_attribute16,
ecp_attribute17,
ecp_attribute18,
ecp_attribute19,
ecp_attribute20,
ecp_attribute21,
ecp_attribute22,
ecp_attribute23,
ecp_attribute24,
ecp_attribute25,
ecp_attribute26,
ecp_attribute27,
ecp_attribute28,
ecp_attribute29,
ecp_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_elig_cmbn_age_los_prte_f
where elig_cmbn_age_los_prte_id = p_elig_cmbn_age_los_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_cmbn_age_los_prte_f t
where t.elig_cmbn_age_los_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_cmbn_age_los_prte_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.elig_cmbn_age_los_prte_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
elig_cmbn_age_los_prte_id,
effective_start_date,
effective_end_date,
business_group_id,
cmbn_age_los_fctr_id,
eligy_prfl_id,
excld_flag,
ordr_num,
mndtry_flag,
ecp_attribute_category,
ecp_attribute1,
ecp_attribute2,
ecp_attribute3,
ecp_attribute4,
ecp_attribute5,
ecp_attribute6,
ecp_attribute7,
ecp_attribute8,
ecp_attribute9,
ecp_attribute10,
ecp_attribute11,
ecp_attribute12,
ecp_attribute13,
ecp_attribute14,
ecp_attribute15,
ecp_attribute16,
ecp_attribute17,
ecp_attribute18,
ecp_attribute19,
ecp_attribute20,
ecp_attribute21,
ecp_attribute22,
ecp_attribute23,
ecp_attribute24,
ecp_attribute25,
ecp_attribute26,
ecp_attribute27,
ecp_attribute28,
ecp_attribute29,
ecp_attribute30,
object_version_number ,
criteria_score,
criteria_weight
from ben_elig_cmbn_age_los_prte_f
where elig_cmbn_age_los_prte_id = p_elig_cmbn_age_los_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;