The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
vrbl_mtchg_rt_id,
effective_end_date,
effective_start_date,
no_mx_pct_of_py_num_flag,
to_pct_val,
no_mx_amt_of_py_num_flag,
mx_pct_of_py_num,
no_mx_mtch_amt_flag,
ordr_num,
pct_val,
mx_mtch_amt,
mx_amt_of_py_num,
mn_mtch_amt,
mtchg_rt_calc_rl,
cntnu_mtch_aftr_max_rl_flag,
from_pct_val,
vrbl_rt_prfl_id,
business_group_id,
vmr_attribute_category,
vmr_attribute1,
vmr_attribute2,
vmr_attribute3,
vmr_attribute4,
vmr_attribute5,
vmr_attribute6,
vmr_attribute7,
vmr_attribute8,
vmr_attribute9,
vmr_attribute10,
vmr_attribute11,
vmr_attribute12,
vmr_attribute13,
vmr_attribute14,
vmr_attribute15,
vmr_attribute16,
vmr_attribute17,
vmr_attribute18,
vmr_attribute19,
vmr_attribute20,
vmr_attribute21,
vmr_attribute22,
vmr_attribute23,
vmr_attribute24,
vmr_attribute25,
vmr_attribute26,
vmr_attribute27,
vmr_attribute28,
vmr_attribute29,
vmr_attribute30,
object_version_number
from ben_vrbl_mtchg_rt_f
where vrbl_mtchg_rt_id = p_vrbl_mtchg_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_vrbl_mtchg_rt_f t
where t.vrbl_mtchg_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_vrbl_mtchg_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.vrbl_mtchg_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
vrbl_mtchg_rt_id,
effective_end_date,
effective_start_date,
no_mx_pct_of_py_num_flag,
to_pct_val,
no_mx_amt_of_py_num_flag,
mx_pct_of_py_num,
no_mx_mtch_amt_flag,
ordr_num,
pct_val,
mx_mtch_amt,
mx_amt_of_py_num,
mn_mtch_amt,
mtchg_rt_calc_rl,
cntnu_mtch_aftr_max_rl_flag,
from_pct_val,
vrbl_rt_prfl_id,
business_group_id,
vmr_attribute_category,
vmr_attribute1,
vmr_attribute2,
vmr_attribute3,
vmr_attribute4,
vmr_attribute5,
vmr_attribute6,
vmr_attribute7,
vmr_attribute8,
vmr_attribute9,
vmr_attribute10,
vmr_attribute11,
vmr_attribute12,
vmr_attribute13,
vmr_attribute14,
vmr_attribute15,
vmr_attribute16,
vmr_attribute17,
vmr_attribute18,
vmr_attribute19,
vmr_attribute20,
vmr_attribute21,
vmr_attribute22,
vmr_attribute23,
vmr_attribute24,
vmr_attribute25,
vmr_attribute26,
vmr_attribute27,
vmr_attribute28,
vmr_attribute29,
vmr_attribute30,
object_version_number
from ben_vrbl_mtchg_rt_f
where vrbl_mtchg_rt_id = p_vrbl_mtchg_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;