The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
poe_rt_id,
effective_start_date,
effective_end_date,
mn_poe_num,
mx_poe_num,
no_mn_poe_flag,
no_mx_poe_flag,
rndg_cd,
rndg_rl,
poe_nnmntry_uom,
vrbl_rt_prfl_id,
business_group_id,
prt_attribute_category,
prt_attribute1,
prt_attribute2,
prt_attribute3,
prt_attribute4,
prt_attribute5,
prt_attribute6,
prt_attribute7,
prt_attribute8,
prt_attribute9,
prt_attribute10,
prt_attribute11,
prt_attribute12,
prt_attribute13,
prt_attribute14,
prt_attribute15,
prt_attribute16,
prt_attribute17,
prt_attribute18,
prt_attribute19,
prt_attribute20,
prt_attribute21,
prt_attribute22,
prt_attribute23,
prt_attribute24,
prt_attribute25,
prt_attribute26,
prt_attribute27,
prt_attribute28,
prt_attribute29,
prt_attribute30,
object_version_number,
cbr_dsblty_apls_flag
from ben_poe_rt_f
where poe_rt_id = p_poe_rt_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.vrbl_rt_prfl_id
from ben_poe_rt_f t
where t.poe_rt_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_poe_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.poe_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
poe_rt_id,
effective_start_date,
effective_end_date,
mn_poe_num,
mx_poe_num,
no_mn_poe_flag,
no_mx_poe_flag,
rndg_cd,
rndg_rl,
poe_nnmntry_uom,
vrbl_rt_prfl_id,
business_group_id,
prt_attribute_category,
prt_attribute1,
prt_attribute2,
prt_attribute3,
prt_attribute4,
prt_attribute5,
prt_attribute6,
prt_attribute7,
prt_attribute8,
prt_attribute9,
prt_attribute10,
prt_attribute11,
prt_attribute12,
prt_attribute13,
prt_attribute14,
prt_attribute15,
prt_attribute16,
prt_attribute17,
prt_attribute18,
prt_attribute19,
prt_attribute20,
prt_attribute21,
prt_attribute22,
prt_attribute23,
prt_attribute24,
prt_attribute25,
prt_attribute26,
prt_attribute27,
prt_attribute28,
prt_attribute29,
prt_attribute30,
object_version_number,
cbr_dsblty_apls_flag
from ben_poe_rt_f
where poe_rt_id = p_poe_rt_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;