The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
mtchg_rt_id,
effective_start_date,
effective_end_date,
acty_base_rt_id,
comp_lvl_fctr_id,
ordr_num,
from_pct_val,
to_pct_val,
pct_val,
mx_amt_of_py_num,
mx_pct_of_py_num,
mx_mtch_amt,
mn_mtch_amt,
mtchg_rt_calc_rl,
no_mx_mtch_amt_flag,
no_mx_pct_of_py_num_flag,
cntnu_mtch_aftr_mx_rl_flag,
no_mx_amt_of_py_num_flag,
business_group_id,
mtr_attribute_category,
mtr_attribute1,
mtr_attribute2,
mtr_attribute3,
mtr_attribute4,
mtr_attribute5,
mtr_attribute6,
mtr_attribute7,
mtr_attribute8,
mtr_attribute9,
mtr_attribute10,
mtr_attribute11,
mtr_attribute12,
mtr_attribute13,
mtr_attribute14,
mtr_attribute15,
mtr_attribute16,
mtr_attribute17,
mtr_attribute18,
mtr_attribute19,
mtr_attribute20,
mtr_attribute21,
mtr_attribute22,
mtr_attribute23,
mtr_attribute24,
mtr_attribute25,
mtr_attribute26,
mtr_attribute27,
mtr_attribute28,
mtr_attribute29,
mtr_attribute30,
object_version_number
from ben_mtchg_rt_f
where mtchg_rt_id = p_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.acty_base_rt_id
from ben_mtchg_rt_f t
where t.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_mtchg_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.mtchg_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
mtchg_rt_id,
effective_start_date,
effective_end_date,
acty_base_rt_id,
comp_lvl_fctr_id,
ordr_num,
from_pct_val,
to_pct_val,
pct_val,
mx_amt_of_py_num,
mx_pct_of_py_num,
mx_mtch_amt,
mn_mtch_amt,
mtchg_rt_calc_rl,
no_mx_mtch_amt_flag,
no_mx_pct_of_py_num_flag,
cntnu_mtch_aftr_mx_rl_flag,
no_mx_amt_of_py_num_flag,
business_group_id,
mtr_attribute_category,
mtr_attribute1,
mtr_attribute2,
mtr_attribute3,
mtr_attribute4,
mtr_attribute5,
mtr_attribute6,
mtr_attribute7,
mtr_attribute8,
mtr_attribute9,
mtr_attribute10,
mtr_attribute11,
mtr_attribute12,
mtr_attribute13,
mtr_attribute14,
mtr_attribute15,
mtr_attribute16,
mtr_attribute17,
mtr_attribute18,
mtr_attribute19,
mtr_attribute20,
mtr_attribute21,
mtr_attribute22,
mtr_attribute23,
mtr_attribute24,
mtr_attribute25,
mtr_attribute26,
mtr_attribute27,
mtr_attribute28,
mtr_attribute29,
mtr_attribute30,
object_version_number
from ben_mtchg_rt_f
where mtchg_rt_id = p_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;