The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
elig_cbr_quald_bnf_id,
effective_start_date,
effective_end_date,
quald_bnf_flag,
ordr_num,
eligy_prfl_id,
pgm_id,
ptip_id,
business_group_id,
ecq_attribute_category,
ecq_attribute1,
ecq_attribute2,
ecq_attribute3,
ecq_attribute4,
ecq_attribute5,
ecq_attribute6,
ecq_attribute7,
ecq_attribute8,
ecq_attribute9,
ecq_attribute10,
ecq_attribute11,
ecq_attribute12,
ecq_attribute13,
ecq_attribute14,
ecq_attribute15,
ecq_attribute16,
ecq_attribute17,
ecq_attribute18,
ecq_attribute19,
ecq_attribute20,
ecq_attribute21,
ecq_attribute22,
ecq_attribute23,
ecq_attribute24,
ecq_attribute25,
ecq_attribute26,
ecq_attribute27,
ecq_attribute28,
ecq_attribute29,
ecq_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_elig_cbr_quald_bnf_f
where elig_cbr_quald_bnf_id = p_elig_cbr_quald_bnf_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.pgm_id,
t.ptip_id
from ben_elig_cbr_quald_bnf_f t
where t.elig_cbr_quald_bnf_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_cbr_quald_bnf_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.elig_cbr_quald_bnf_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
elig_cbr_quald_bnf_id,
effective_start_date,
effective_end_date,
quald_bnf_flag,
ordr_num,
eligy_prfl_id,
pgm_id,
ptip_id,
business_group_id,
ecq_attribute_category,
ecq_attribute1,
ecq_attribute2,
ecq_attribute3,
ecq_attribute4,
ecq_attribute5,
ecq_attribute6,
ecq_attribute7,
ecq_attribute8,
ecq_attribute9,
ecq_attribute10,
ecq_attribute11,
ecq_attribute12,
ecq_attribute13,
ecq_attribute14,
ecq_attribute15,
ecq_attribute16,
ecq_attribute17,
ecq_attribute18,
ecq_attribute19,
ecq_attribute20,
ecq_attribute21,
ecq_attribute22,
ecq_attribute23,
ecq_attribute24,
ecq_attribute25,
ecq_attribute26,
ecq_attribute27,
ecq_attribute28,
ecq_attribute29,
ecq_attribute30,
object_version_number,
criteria_score,
criteria_weight
from ben_elig_cbr_quald_bnf_f
where elig_cbr_quald_bnf_id = p_elig_cbr_quald_bnf_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;