The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
actl_prem_vrbl_rt_id,
effective_start_date,
effective_end_date,
actl_prem_id,
vrbl_rt_prfl_id,
ordr_num,
business_group_id,
apv_attribute_category,
apv_attribute1,
apv_attribute2,
apv_attribute3,
apv_attribute4,
apv_attribute5,
apv_attribute6,
apv_attribute7,
apv_attribute8,
apv_attribute9,
apv_attribute10,
apv_attribute11,
apv_attribute12,
apv_attribute13,
apv_attribute14,
apv_attribute15,
apv_attribute16,
apv_attribute17,
apv_attribute18,
apv_attribute19,
apv_attribute20,
apv_attribute21,
apv_attribute22,
apv_attribute23,
apv_attribute24,
apv_attribute25,
apv_attribute26,
apv_attribute27,
apv_attribute28,
apv_attribute29,
apv_attribute30,
object_version_number
from ben_actl_prem_vrbl_rt_f
where actl_prem_vrbl_rt_id = p_actl_prem_vrbl_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,
t.actl_prem_id
from ben_actl_prem_vrbl_rt_f t
where t.actl_prem_vrbl_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_actl_prem_vrbl_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.actl_prem_vrbl_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
actl_prem_vrbl_rt_id,
effective_start_date,
effective_end_date,
actl_prem_id,
vrbl_rt_prfl_id,
ordr_num,
business_group_id,
apv_attribute_category,
apv_attribute1,
apv_attribute2,
apv_attribute3,
apv_attribute4,
apv_attribute5,
apv_attribute6,
apv_attribute7,
apv_attribute8,
apv_attribute9,
apv_attribute10,
apv_attribute11,
apv_attribute12,
apv_attribute13,
apv_attribute14,
apv_attribute15,
apv_attribute16,
apv_attribute17,
apv_attribute18,
apv_attribute19,
apv_attribute20,
apv_attribute21,
apv_attribute22,
apv_attribute23,
apv_attribute24,
apv_attribute25,
apv_attribute26,
apv_attribute27,
apv_attribute28,
apv_attribute29,
apv_attribute30,
object_version_number
from ben_actl_prem_vrbl_rt_f
where actl_prem_vrbl_rt_id = p_actl_prem_vrbl_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;