The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
paird_rt_id,
effective_start_date,
effective_end_date,
use_parnt_ded_sched_flag,
asn_on_chc_of_parnt_flag,
use_parnt_prtl_mo_cd_flag,
alloc_sme_as_parnt_flag,
use_parnt_pymt_sched_flag,
no_cmbnd_mx_amt_dfnd_flag,
cmbnd_mx_amt,
cmbnd_mn_amt,
cmbnd_mx_pct_num,
cmbnd_mn_pct_num,
no_cmbnd_mn_amt_dfnd_flag,
no_cmbnd_mn_pct_dfnd_flag,
no_cmbnd_mx_pct_dfnd_flag,
parnt_acty_base_rt_id,
chld_acty_base_rt_id,
business_group_id,
prd_attribute_category,
prd_attribute1,
prd_attribute2,
prd_attribute3,
prd_attribute4,
prd_attribute5,
prd_attribute6,
prd_attribute7,
prd_attribute8,
prd_attribute9,
prd_attribute10,
prd_attribute11,
prd_attribute12,
prd_attribute13,
prd_attribute14,
prd_attribute15,
prd_attribute16,
prd_attribute17,
prd_attribute18,
prd_attribute19,
prd_attribute20,
prd_attribute21,
prd_attribute22,
prd_attribute23,
prd_attribute24,
prd_attribute25,
prd_attribute26,
prd_attribute27,
prd_attribute28,
prd_attribute29,
prd_attribute30,
object_version_number
from ben_paird_rt_f
where paird_rt_id = p_paird_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.parnt_acty_base_rt_id,
t.chld_acty_base_rt_id
from ben_paird_rt_f t
where t.paird_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_paird_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.paird_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
paird_rt_id,
effective_start_date,
effective_end_date,
use_parnt_ded_sched_flag,
asn_on_chc_of_parnt_flag,
use_parnt_prtl_mo_cd_flag,
alloc_sme_as_parnt_flag,
use_parnt_pymt_sched_flag,
no_cmbnd_mx_amt_dfnd_flag,
cmbnd_mx_amt,
cmbnd_mn_amt,
cmbnd_mx_pct_num,
cmbnd_mn_pct_num,
no_cmbnd_mn_amt_dfnd_flag,
no_cmbnd_mn_pct_dfnd_flag,
no_cmbnd_mx_pct_dfnd_flag,
parnt_acty_base_rt_id,
chld_acty_base_rt_id,
business_group_id,
prd_attribute_category,
prd_attribute1,
prd_attribute2,
prd_attribute3,
prd_attribute4,
prd_attribute5,
prd_attribute6,
prd_attribute7,
prd_attribute8,
prd_attribute9,
prd_attribute10,
prd_attribute11,
prd_attribute12,
prd_attribute13,
prd_attribute14,
prd_attribute15,
prd_attribute16,
prd_attribute17,
prd_attribute18,
prd_attribute19,
prd_attribute20,
prd_attribute21,
prd_attribute22,
prd_attribute23,
prd_attribute24,
prd_attribute25,
prd_attribute26,
prd_attribute27,
prd_attribute28,
prd_attribute29,
prd_attribute30,
object_version_number
from ben_paird_rt_f
where paird_rt_id = p_paird_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;