The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
vrbl_rt_rl_id,
effective_start_date,
effective_end_date,
drvbl_fctr_apls_flag,
rt_trtmt_cd,
business_group_id,
formula_id,
acty_base_rt_id,
ordr_to_aply_num,
vrr_attribute_category,
vrr_attribute1,
vrr_attribute2,
vrr_attribute3,
vrr_attribute4,
vrr_attribute5,
vrr_attribute6,
vrr_attribute7,
vrr_attribute8,
vrr_attribute9,
vrr_attribute10,
vrr_attribute11,
vrr_attribute12,
vrr_attribute13,
vrr_attribute14,
vrr_attribute15,
vrr_attribute16,
vrr_attribute17,
vrr_attribute18,
vrr_attribute19,
vrr_attribute20,
vrr_attribute21,
vrr_attribute22,
vrr_attribute23,
vrr_attribute24,
vrr_attribute25,
vrr_attribute26,
vrr_attribute27,
vrr_attribute28,
vrr_attribute29,
vrr_attribute30,
object_version_number
from ben_vrbl_rt_rl_f
where vrbl_rt_rl_id = p_vrbl_rt_rl_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.acty_base_rt_id
from ben_vrbl_rt_rl_f t
where t.vrbl_rt_rl_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_vrbl_rt_rl_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.vrbl_rt_rl_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
vrbl_rt_rl_id,
effective_start_date,
effective_end_date,
drvbl_fctr_apls_flag,
rt_trtmt_cd,
business_group_id,
formula_id,
acty_base_rt_id,
ordr_to_aply_num,
vrr_attribute_category,
vrr_attribute1,
vrr_attribute2,
vrr_attribute3,
vrr_attribute4,
vrr_attribute5,
vrr_attribute6,
vrr_attribute7,
vrr_attribute8,
vrr_attribute9,
vrr_attribute10,
vrr_attribute11,
vrr_attribute12,
vrr_attribute13,
vrr_attribute14,
vrr_attribute15,
vrr_attribute16,
vrr_attribute17,
vrr_attribute18,
vrr_attribute19,
vrr_attribute20,
vrr_attribute21,
vrr_attribute22,
vrr_attribute23,
vrr_attribute24,
vrr_attribute25,
vrr_attribute26,
vrr_attribute27,
vrr_attribute28,
vrr_attribute29,
vrr_attribute30,
object_version_number
from ben_vrbl_rt_rl_f
where vrbl_rt_rl_id = p_vrbl_rt_rl_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;