The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
dsgntr_enrld_cvg_id,
effective_start_date,
effective_end_date,
dsgntr_crntly_enrld_flag,
dpnt_cvg_eligy_prfl_id,
business_group_id,
dec_attribute_category,
dec_attribute1,
dec_attribute2,
dec_attribute3,
dec_attribute4,
dec_attribute5,
dec_attribute6,
dec_attribute7,
dec_attribute8,
dec_attribute9,
dec_attribute10,
dec_attribute11,
dec_attribute12,
dec_attribute13,
dec_attribute14,
dec_attribute15,
dec_attribute16,
dec_attribute17,
dec_attribute18,
dec_attribute19,
dec_attribute20,
dec_attribute21,
dec_attribute22,
dec_attribute23,
dec_attribute24,
dec_attribute25,
dec_attribute26,
dec_attribute27,
dec_attribute28,
dec_attribute29,
dec_attribute30,
object_version_number
from ben_dsgntr_enrld_cvg_f
where dsgntr_enrld_cvg_id = p_dsgntr_enrld_cvg_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_dsgntr_enrld_cvg_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.dsgntr_enrld_cvg_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
dsgntr_enrld_cvg_id,
effective_start_date,
effective_end_date,
dsgntr_crntly_enrld_flag,
dpnt_cvg_eligy_prfl_id,
business_group_id,
dec_attribute_category,
dec_attribute1,
dec_attribute2,
dec_attribute3,
dec_attribute4,
dec_attribute5,
dec_attribute6,
dec_attribute7,
dec_attribute8,
dec_attribute9,
dec_attribute10,
dec_attribute11,
dec_attribute12,
dec_attribute13,
dec_attribute14,
dec_attribute15,
dec_attribute16,
dec_attribute17,
dec_attribute18,
dec_attribute19,
dec_attribute20,
dec_attribute21,
dec_attribute22,
dec_attribute23,
dec_attribute24,
dec_attribute25,
dec_attribute26,
dec_attribute27,
dec_attribute28,
dec_attribute29,
dec_attribute30,
object_version_number
from ben_dsgntr_enrld_cvg_f
where dsgntr_enrld_cvg_id = p_dsgntr_enrld_cvg_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;