The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ttl_prtt_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
excld_flag,
no_mn_prtt_num_apls_flag,
no_mx_prtt_num_apls_flag,
ordr_num,
mn_prtt_num,
mx_prtt_num,
prtt_det_cd,
prtt_det_rl,
vrbl_rt_prfl_id,
ttp_attribute_category,
ttp_attribute1,
ttp_attribute2,
ttp_attribute3,
ttp_attribute4,
ttp_attribute5,
ttp_attribute6,
ttp_attribute7,
ttp_attribute8,
ttp_attribute9,
ttp_attribute10,
ttp_attribute11,
ttp_attribute12,
ttp_attribute13,
ttp_attribute14,
ttp_attribute15,
ttp_attribute16,
ttp_attribute17,
ttp_attribute18,
ttp_attribute19,
ttp_attribute20,
ttp_attribute21,
ttp_attribute22,
ttp_attribute23,
ttp_attribute24,
ttp_attribute25,
ttp_attribute26,
ttp_attribute27,
ttp_attribute28,
ttp_attribute29,
ttp_attribute30,
object_version_number
from ben_ttl_prtt_rt_f
where ttl_prtt_rt_id = p_ttl_prtt_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_ttl_prtt_rt_f t
where t.ttl_prtt_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_ttl_prtt_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ttl_prtt_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ttl_prtt_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
excld_flag,
no_mn_prtt_num_apls_flag,
no_mx_prtt_num_apls_flag,
ordr_num,
mn_prtt_num,
mx_prtt_num,
prtt_det_cd,
prtt_det_rl,
vrbl_rt_prfl_id,
ttp_attribute_category,
ttp_attribute1,
ttp_attribute2,
ttp_attribute3,
ttp_attribute4,
ttp_attribute5,
ttp_attribute6,
ttp_attribute7,
ttp_attribute8,
ttp_attribute9,
ttp_attribute10,
ttp_attribute11,
ttp_attribute12,
ttp_attribute13,
ttp_attribute14,
ttp_attribute15,
ttp_attribute16,
ttp_attribute17,
ttp_attribute18,
ttp_attribute19,
ttp_attribute20,
ttp_attribute21,
ttp_attribute22,
ttp_attribute23,
ttp_attribute24,
ttp_attribute25,
ttp_attribute26,
ttp_attribute27,
ttp_attribute28,
ttp_attribute29,
ttp_attribute30,
object_version_number
from ben_ttl_prtt_rt_f
where ttl_prtt_rt_id = p_ttl_prtt_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;