The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
py_bss_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
pay_basis_id,
excld_flag,
ordr_num,
business_group_id,
pbr_attribute_category,
pbr_attribute1,
pbr_attribute2,
pbr_attribute3,
pbr_attribute4,
pbr_attribute5,
pbr_attribute6,
pbr_attribute7,
pbr_attribute8,
pbr_attribute9,
pbr_attribute10,
pbr_attribute11,
pbr_attribute12,
pbr_attribute13,
pbr_attribute14,
pbr_attribute15,
pbr_attribute16,
pbr_attribute17,
pbr_attribute18,
pbr_attribute19,
pbr_attribute20,
pbr_attribute21,
pbr_attribute22,
pbr_attribute23,
pbr_attribute24,
pbr_attribute25,
pbr_attribute26,
pbr_attribute27,
pbr_attribute28,
pbr_attribute29,
pbr_attribute30,
object_version_number
from ben_py_bss_rt_f
where py_bss_rt_id = p_py_bss_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_py_bss_rt_f t
where t.py_bss_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_py_bss_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.py_bss_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
py_bss_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
pay_basis_id,
excld_flag,
ordr_num,
business_group_id,
pbr_attribute_category,
pbr_attribute1,
pbr_attribute2,
pbr_attribute3,
pbr_attribute4,
pbr_attribute5,
pbr_attribute6,
pbr_attribute7,
pbr_attribute8,
pbr_attribute9,
pbr_attribute10,
pbr_attribute11,
pbr_attribute12,
pbr_attribute13,
pbr_attribute14,
pbr_attribute15,
pbr_attribute16,
pbr_attribute17,
pbr_attribute18,
pbr_attribute19,
pbr_attribute20,
pbr_attribute21,
pbr_attribute22,
pbr_attribute23,
pbr_attribute24,
pbr_attribute25,
pbr_attribute26,
pbr_attribute27,
pbr_attribute28,
pbr_attribute29,
pbr_attribute30,
object_version_number
from ben_py_bss_rt_f
where py_bss_rt_id = p_py_bss_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;