The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
dpnt_cvg_eligy_prfl_id,
effective_end_date,
effective_start_date,
business_group_id,
regn_id,
name,
dpnt_cvg_eligy_prfl_stat_cd,
dce_desc,
-- military_status_rqmt_ind,
dpnt_cvg_elig_det_rl,
dce_attribute_category,
dce_attribute1,
dce_attribute2,
dce_attribute3,
dce_attribute4,
dce_attribute5,
dce_attribute6,
dce_attribute7,
dce_attribute8,
dce_attribute9,
dce_attribute10,
dce_attribute11,
dce_attribute12,
dce_attribute13,
dce_attribute14,
dce_attribute15,
dce_attribute16,
dce_attribute17,
dce_attribute18,
dce_attribute19,
dce_attribute20,
dce_attribute21,
dce_attribute22,
dce_attribute23,
dce_attribute24,
dce_attribute25,
dce_attribute26,
dce_attribute27,
dce_attribute28,
dce_attribute29,
dce_attribute30,
object_version_number,
dpnt_rlshp_flag,
dpnt_age_flag,
dpnt_stud_flag,
dpnt_dsbld_flag,
dpnt_mrtl_flag,
dpnt_mltry_flag,
dpnt_pstl_flag,
dpnt_cvrd_in_anthr_pl_flag,
dpnt_dsgnt_crntly_enrld_flag
from ben_dpnt_cvg_eligy_prfl_f
where dpnt_cvg_eligy_prfl_id = p_dpnt_cvg_eligy_prfl_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.regn_id
from ben_dpnt_cvg_eligy_prfl_f t
where t.dpnt_cvg_eligy_prfl_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_eligy_prfl_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.dpnt_cvg_eligy_prfl_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
dpnt_cvg_eligy_prfl_id,
effective_end_date,
effective_start_date,
business_group_id,
regn_id,
name,
dpnt_cvg_eligy_prfl_stat_cd,
dce_desc,
-- military_status_rqmt_ind,
dpnt_cvg_elig_det_rl,
dce_attribute_category,
dce_attribute1,
dce_attribute2,
dce_attribute3,
dce_attribute4,
dce_attribute5,
dce_attribute6,
dce_attribute7,
dce_attribute8,
dce_attribute9,
dce_attribute10,
dce_attribute11,
dce_attribute12,
dce_attribute13,
dce_attribute14,
dce_attribute15,
dce_attribute16,
dce_attribute17,
dce_attribute18,
dce_attribute19,
dce_attribute20,
dce_attribute21,
dce_attribute22,
dce_attribute23,
dce_attribute24,
dce_attribute25,
dce_attribute26,
dce_attribute27,
dce_attribute28,
dce_attribute29,
dce_attribute30,
object_version_number,
dpnt_rlshp_flag,
dpnt_age_flag,
dpnt_stud_flag,
dpnt_dsbld_flag,
dpnt_mrtl_flag,
dpnt_mltry_flag,
dpnt_pstl_flag,
dpnt_cvrd_in_anthr_pl_flag,
dpnt_dsgnt_crntly_enrld_flag
from ben_dpnt_cvg_eligy_prfl_f
where dpnt_cvg_eligy_prfl_id = p_dpnt_cvg_eligy_prfl_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;