The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
elig_to_prte_rsn_id,
effective_start_date,
effective_end_date,
business_group_id,
ler_id,
oipl_id,
pgm_id,
pl_id,
ptip_id,
plip_id,
ignr_prtn_ovrid_flag,
elig_inelig_cd,
prtn_eff_strt_dt_cd,
prtn_eff_strt_dt_rl,
prtn_eff_end_dt_cd,
prtn_eff_end_dt_rl,
wait_perd_dt_to_use_cd,
wait_perd_dt_to_use_rl,
wait_perd_val,
wait_perd_uom,
wait_perd_rl,
mx_poe_det_dt_cd,
mx_poe_det_dt_rl,
mx_poe_val,
mx_poe_uom,
mx_poe_rl,
mx_poe_apls_cd,
prtn_ovridbl_flag,
vrfy_fmly_mmbr_cd,
vrfy_fmly_mmbr_rl,
peo_attribute_category,
peo_attribute1,
peo_attribute2,
peo_attribute3,
peo_attribute4,
peo_attribute5,
peo_attribute6,
peo_attribute7,
peo_attribute8,
peo_attribute9,
peo_attribute10,
peo_attribute11,
peo_attribute12,
peo_attribute13,
peo_attribute14,
peo_attribute15,
peo_attribute16,
peo_attribute17,
peo_attribute18,
peo_attribute19,
peo_attribute20,
peo_attribute21,
peo_attribute22,
peo_attribute23,
peo_attribute24,
peo_attribute25,
peo_attribute26,
peo_attribute27,
peo_attribute28,
peo_attribute29,
peo_attribute30,
object_version_number
from ben_elig_to_prte_rsn_f
where elig_to_prte_rsn_id = p_elig_to_prte_rsn_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.oipl_id,
t.ler_id,
t.pl_id,
t.pgm_id,
t.ptip_id,
t.plip_id
from ben_elig_to_prte_rsn_f t
where t.elig_to_prte_rsn_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_elig_to_prte_rsn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.elig_to_prte_rsn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
elig_to_prte_rsn_id,
effective_start_date,
effective_end_date,
business_group_id,
ler_id,
oipl_id,
pgm_id,
pl_id,
ptip_id,
plip_id,
ignr_prtn_ovrid_flag,
elig_inelig_cd,
prtn_eff_strt_dt_cd,
prtn_eff_strt_dt_rl,
prtn_eff_end_dt_cd,
prtn_eff_end_dt_rl,
wait_perd_dt_to_use_cd,
wait_perd_dt_to_use_rl,
wait_perd_val,
wait_perd_uom,
wait_perd_rl,
mx_poe_det_dt_cd,
mx_poe_det_dt_rl,
mx_poe_val,
mx_poe_uom,
mx_poe_rl,
mx_poe_apls_cd,
prtn_ovridbl_flag,
vrfy_fmly_mmbr_cd,
vrfy_fmly_mmbr_rl,
peo_attribute_category,
peo_attribute1,
peo_attribute2,
peo_attribute3,
peo_attribute4,
peo_attribute5,
peo_attribute6,
peo_attribute7,
peo_attribute8,
peo_attribute9,
peo_attribute10,
peo_attribute11,
peo_attribute12,
peo_attribute13,
peo_attribute14,
peo_attribute15,
peo_attribute16,
peo_attribute17,
peo_attribute18,
peo_attribute19,
peo_attribute20,
peo_attribute21,
peo_attribute22,
peo_attribute23,
peo_attribute24,
peo_attribute25,
peo_attribute26,
peo_attribute27,
peo_attribute28,
peo_attribute29,
peo_attribute30,
object_version_number
from ben_elig_to_prte_rsn_f
where elig_to_prte_rsn_id = p_elig_to_prte_rsn_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;