The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
pct_fl_tm_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
vrbl_rt_prfl_id,
pct_fl_tm_fctr_id,
excld_flag,
ordr_num,
pfr_attribute_category,
pfr_attribute1,
pfr_attribute2,
pfr_attribute3,
pfr_attribute4,
pfr_attribute5,
pfr_attribute6,
pfr_attribute7,
pfr_attribute8,
pfr_attribute9,
pfr_attribute10,
pfr_attribute11,
pfr_attribute12,
pfr_attribute13,
pfr_attribute14,
pfr_attribute15,
pfr_attribute16,
pfr_attribute17,
pfr_attribute18,
pfr_attribute19,
pfr_attribute20,
pfr_attribute21,
pfr_attribute22,
pfr_attribute23,
pfr_attribute24,
pfr_attribute25,
pfr_attribute26,
pfr_attribute27,
pfr_attribute28,
pfr_attribute29,
pfr_attribute30,
object_version_number
from ben_pct_fl_tm_rt_f
where pct_fl_tm_rt_id = p_pct_fl_tm_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_pct_fl_tm_rt_f t
where t.pct_fl_tm_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_pct_fl_tm_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.pct_fl_tm_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
pct_fl_tm_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
vrbl_rt_prfl_id,
pct_fl_tm_fctr_id,
excld_flag,
ordr_num,
pfr_attribute_category,
pfr_attribute1,
pfr_attribute2,
pfr_attribute3,
pfr_attribute4,
pfr_attribute5,
pfr_attribute6,
pfr_attribute7,
pfr_attribute8,
pfr_attribute9,
pfr_attribute10,
pfr_attribute11,
pfr_attribute12,
pfr_attribute13,
pfr_attribute14,
pfr_attribute15,
pfr_attribute16,
pfr_attribute17,
pfr_attribute18,
pfr_attribute19,
pfr_attribute20,
pfr_attribute21,
pfr_attribute22,
pfr_attribute23,
pfr_attribute24,
pfr_attribute25,
pfr_attribute26,
pfr_attribute27,
pfr_attribute28,
pfr_attribute29,
pfr_attribute30,
object_version_number
from ben_pct_fl_tm_rt_f
where pct_fl_tm_rt_id = p_pct_fl_tm_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;