The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ELIG_HLTH_CVG_PRTE_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
pl_typ_opt_typ_id,
oipl_id,
eligy_prfl_id,
business_group_id,
ehc_attribute_category,
ehc_attribute1,
ehc_attribute2,
ehc_attribute3,
ehc_attribute4,
ehc_attribute5,
ehc_attribute6,
ehc_attribute7,
ehc_attribute8,
ehc_attribute9,
ehc_attribute10,
ehc_attribute11,
ehc_attribute12,
ehc_attribute13,
ehc_attribute14,
ehc_attribute15,
ehc_attribute16,
ehc_attribute17,
ehc_attribute18,
ehc_attribute19,
ehc_attribute20,
ehc_attribute21,
ehc_attribute22,
ehc_attribute23,
ehc_attribute24,
ehc_attribute25,
ehc_attribute26,
ehc_attribute27,
ehc_attribute28,
ehc_attribute29,
ehc_attribute30,
object_version_number
from ben_ELIG_HLTH_CVG_PRTE_f
where ELIG_HLTH_CVG_PRTE_id = p_ELIG_HLTH_CVG_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_HLTH_CVG_PRTE_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ELIG_HLTH_CVG_PRTE_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ELIG_HLTH_CVG_PRTE_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
pl_typ_opt_typ_id,
oipl_id,
eligy_prfl_id,
business_group_id,
ehc_attribute_category,
ehc_attribute1,
ehc_attribute2,
ehc_attribute3,
ehc_attribute4,
ehc_attribute5,
ehc_attribute6,
ehc_attribute7,
ehc_attribute8,
ehc_attribute9,
ehc_attribute10,
ehc_attribute11,
ehc_attribute12,
ehc_attribute13,
ehc_attribute14,
ehc_attribute15,
ehc_attribute16,
ehc_attribute17,
ehc_attribute18,
ehc_attribute19,
ehc_attribute20,
ehc_attribute21,
ehc_attribute22,
ehc_attribute23,
ehc_attribute24,
ehc_attribute25,
ehc_attribute26,
ehc_attribute27,
ehc_attribute28,
ehc_attribute29,
ehc_attribute30,
object_version_number
from ben_ELIG_HLTH_CVG_PRTE_f
where ELIG_HLTH_CVG_PRTE_id = p_ELIG_HLTH_CVG_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;