The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
dpnt_cvg_rqd_rlshp_id,
effective_start_date,
effective_end_date,
business_group_id,
per_relshp_typ_cd,
cvg_strt_dt_cd,
cvg_thru_dt_rl,
cvg_thru_dt_cd,
cvg_strt_dt_rl,
dpnt_cvg_eligy_prfl_id,
dcr_attribute_category,
dcr_attribute1,
dcr_attribute2,
dcr_attribute3,
dcr_attribute4,
dcr_attribute5,
dcr_attribute6,
dcr_attribute7,
dcr_attribute8,
dcr_attribute9,
dcr_attribute10,
dcr_attribute11,
dcr_attribute12,
dcr_attribute13,
dcr_attribute14,
dcr_attribute15,
dcr_attribute16,
dcr_attribute17,
dcr_attribute18,
dcr_attribute19,
dcr_attribute20,
dcr_attribute21,
dcr_attribute22,
dcr_attribute23,
dcr_attribute24,
dcr_attribute25,
dcr_attribute26,
dcr_attribute27,
dcr_attribute28,
dcr_attribute29,
dcr_attribute30,
object_version_number
from ben_dpnt_cvg_rqd_rlshp_f
where dpnt_cvg_rqd_rlshp_id = p_dpnt_cvg_rqd_rlshp_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
from ben_dpnt_cvg_rqd_rlshp_f t
where t.dpnt_cvg_rqd_rlshp_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_cvg_rqd_rlshp_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.dpnt_cvg_rqd_rlshp_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
dpnt_cvg_rqd_rlshp_id,
effective_start_date,
effective_end_date,
business_group_id,
per_relshp_typ_cd,
cvg_strt_dt_cd,
cvg_thru_dt_rl,
cvg_thru_dt_cd,
cvg_strt_dt_rl,
dpnt_cvg_eligy_prfl_id,
dcr_attribute_category,
dcr_attribute1,
dcr_attribute2,
dcr_attribute3,
dcr_attribute4,
dcr_attribute5,
dcr_attribute6,
dcr_attribute7,
dcr_attribute8,
dcr_attribute9,
dcr_attribute10,
dcr_attribute11,
dcr_attribute12,
dcr_attribute13,
dcr_attribute14,
dcr_attribute15,
dcr_attribute16,
dcr_attribute17,
dcr_attribute18,
dcr_attribute19,
dcr_attribute20,
dcr_attribute21,
dcr_attribute22,
dcr_attribute23,
dcr_attribute24,
dcr_attribute25,
dcr_attribute26,
dcr_attribute27,
dcr_attribute28,
dcr_attribute29,
dcr_attribute30,
object_version_number
from ben_dpnt_cvg_rqd_rlshp_f
where dpnt_cvg_rqd_rlshp_id = p_dpnt_cvg_rqd_rlshp_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;