The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
dpnt_cvrd_anthr_pl_cvg_id,
effective_start_date,
effective_end_date,
business_group_id,
cvg_det_dt_cd,
ordr_num,
excld_flag,
dpnt_cvg_eligy_prfl_id,
pl_id,
dpc_attribute_category,
dpc_attribute1,
dpc_attribute2,
dpc_attribute3,
dpc_attribute4,
dpc_attribute5,
dpc_attribute6,
dpc_attribute7,
dpc_attribute8,
dpc_attribute9,
dpc_attribute10,
dpc_attribute11,
dpc_attribute12,
dpc_attribute13,
dpc_attribute14,
dpc_attribute15,
dpc_attribute16,
dpc_attribute17,
dpc_attribute18,
dpc_attribute19,
dpc_attribute20,
dpc_attribute21,
dpc_attribute22,
dpc_attribute23,
dpc_attribute24,
dpc_attribute25,
dpc_attribute26,
dpc_attribute27,
dpc_attribute28,
dpc_attribute29,
dpc_attribute30,
object_version_number
from ben_dpnt_cvrd_anthr_pl_cvg_f
where dpnt_cvrd_anthr_pl_cvg_id = p_dpnt_cvrd_anthr_pl_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';
select t.dpnt_cvg_eligy_prfl_id,
t.pl_id
from ben_dpnt_cvrd_anthr_pl_cvg_f t
where t.dpnt_cvrd_anthr_pl_cvg_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_dpnt_cvrd_anthr_pl_cvg_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.dpnt_cvrd_anthr_pl_cvg_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
dpnt_cvrd_anthr_pl_cvg_id,
effective_start_date,
effective_end_date,
business_group_id,
cvg_det_dt_cd,
ordr_num,
excld_flag,
dpnt_cvg_eligy_prfl_id,
pl_id,
dpc_attribute_category,
dpc_attribute1,
dpc_attribute2,
dpc_attribute3,
dpc_attribute4,
dpc_attribute5,
dpc_attribute6,
dpc_attribute7,
dpc_attribute8,
dpc_attribute9,
dpc_attribute10,
dpc_attribute11,
dpc_attribute12,
dpc_attribute13,
dpc_attribute14,
dpc_attribute15,
dpc_attribute16,
dpc_attribute17,
dpc_attribute18,
dpc_attribute19,
dpc_attribute20,
dpc_attribute21,
dpc_attribute22,
dpc_attribute23,
dpc_attribute24,
dpc_attribute25,
dpc_attribute26,
dpc_attribute27,
dpc_attribute28,
dpc_attribute29,
dpc_attribute30,
object_version_number
from ben_dpnt_cvrd_anthr_pl_cvg_f
where dpnt_cvrd_anthr_pl_cvg_id = p_dpnt_cvrd_anthr_pl_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;