The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
prtn_elig_prfl_id,
effective_start_date,
effective_end_date,
business_group_id,
mndtry_flag,
prtn_elig_id,
eligy_prfl_id,
Elig_prfl_type_cd,
cep_attribute_category,
cep_attribute1,
cep_attribute2,
cep_attribute3,
cep_attribute4,
cep_attribute5,
cep_attribute6,
cep_attribute7,
cep_attribute8,
cep_attribute9,
cep_attribute10,
cep_attribute11,
cep_attribute12,
cep_attribute13,
cep_attribute14,
cep_attribute15,
cep_attribute16,
cep_attribute17,
cep_attribute18,
cep_attribute19,
cep_attribute20,
cep_attribute21,
cep_attribute22,
cep_attribute23,
cep_attribute24,
cep_attribute25,
cep_attribute26,
cep_attribute27,
cep_attribute28,
cep_attribute29,
cep_attribute30,
object_version_number,
compute_score_flag
from ben_prtn_elig_prfl_f
where prtn_elig_prfl_id = p_prtn_elig_prfl_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,
t.prtn_elig_id
from ben_prtn_elig_prfl_f t
where t.prtn_elig_prfl_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_prtn_elig_prfl_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.prtn_elig_prfl_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
prtn_elig_prfl_id,
effective_start_date,
effective_end_date,
business_group_id,
mndtry_flag,
prtn_elig_id,
eligy_prfl_id,
Elig_prfl_type_cd,
cep_attribute_category,
cep_attribute1,
cep_attribute2,
cep_attribute3,
cep_attribute4,
cep_attribute5,
cep_attribute6,
cep_attribute7,
cep_attribute8,
cep_attribute9,
cep_attribute10,
cep_attribute11,
cep_attribute12,
cep_attribute13,
cep_attribute14,
cep_attribute15,
cep_attribute16,
cep_attribute17,
cep_attribute18,
cep_attribute19,
cep_attribute20,
cep_attribute21,
cep_attribute22,
cep_attribute23,
cep_attribute24,
cep_attribute25,
cep_attribute26,
cep_attribute27,
cep_attribute28,
cep_attribute29,
cep_attribute30,
object_version_number,
compute_score_flag
from ben_prtn_elig_prfl_f
where prtn_elig_prfl_id = p_prtn_elig_prfl_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;