The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ttl_cvg_vol_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
excld_flag,
no_mn_cvg_vol_amt_apls_flag,
no_mx_cvg_vol_amt_apls_flag,
ordr_num,
mn_cvg_vol_amt,
mx_cvg_vol_amt,
cvg_vol_det_cd,
cvg_vol_det_rl,
vrbl_rt_prfl_id,
tcv_attribute_category,
tcv_attribute1,
tcv_attribute2,
tcv_attribute3,
tcv_attribute4,
tcv_attribute5,
tcv_attribute6,
tcv_attribute7,
tcv_attribute8,
tcv_attribute9,
tcv_attribute10,
tcv_attribute11,
tcv_attribute12,
tcv_attribute13,
tcv_attribute14,
tcv_attribute15,
tcv_attribute16,
tcv_attribute17,
tcv_attribute18,
tcv_attribute19,
tcv_attribute20,
tcv_attribute21,
tcv_attribute22,
tcv_attribute23,
tcv_attribute24,
tcv_attribute25,
tcv_attribute26,
tcv_attribute27,
tcv_attribute28,
tcv_attribute29,
tcv_attribute30,
object_version_number
from ben_ttl_cvg_vol_rt_f
where ttl_cvg_vol_rt_id = p_ttl_cvg_vol_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_cvg_vol_rt_f t
where t.ttl_cvg_vol_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_cvg_vol_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ttl_cvg_vol_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ttl_cvg_vol_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
excld_flag,
no_mn_cvg_vol_amt_apls_flag,
no_mx_cvg_vol_amt_apls_flag,
ordr_num,
mn_cvg_vol_amt,
mx_cvg_vol_amt,
cvg_vol_det_cd,
cvg_vol_det_rl,
vrbl_rt_prfl_id,
tcv_attribute_category,
tcv_attribute1,
tcv_attribute2,
tcv_attribute3,
tcv_attribute4,
tcv_attribute5,
tcv_attribute6,
tcv_attribute7,
tcv_attribute8,
tcv_attribute9,
tcv_attribute10,
tcv_attribute11,
tcv_attribute12,
tcv_attribute13,
tcv_attribute14,
tcv_attribute15,
tcv_attribute16,
tcv_attribute17,
tcv_attribute18,
tcv_attribute19,
tcv_attribute20,
tcv_attribute21,
tcv_attribute22,
tcv_attribute23,
tcv_attribute24,
tcv_attribute25,
tcv_attribute26,
tcv_attribute27,
tcv_attribute28,
tcv_attribute29,
tcv_attribute30,
object_version_number
from ben_ttl_cvg_vol_rt_f
where ttl_cvg_vol_rt_id = p_ttl_cvg_vol_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;