The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
bnft_vrbl_rt_rl_id,
effective_start_date,
effective_end_date,
ordr_to_aply_num,
cvg_amt_calc_mthd_id,
formula_id,
business_group_id,
brr_attribute_category,
brr_attribute1,
brr_attribute2,
brr_attribute3,
brr_attribute4,
brr_attribute5,
brr_attribute6,
brr_attribute7,
brr_attribute8,
brr_attribute9,
brr_attribute10,
brr_attribute11,
brr_attribute12,
brr_attribute13,
brr_attribute14,
brr_attribute15,
brr_attribute16,
brr_attribute17,
brr_attribute18,
brr_attribute19,
brr_attribute20,
brr_attribute21,
brr_attribute22,
brr_attribute23,
brr_attribute24,
brr_attribute25,
brr_attribute26,
brr_attribute27,
brr_attribute28,
brr_attribute29,
brr_attribute30,
object_version_number
from ben_bnft_vrbl_rt_rl_f
where bnft_vrbl_rt_rl_id = p_bnft_vrbl_rt_rl_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.cvg_amt_calc_mthd_id
from ben_bnft_vrbl_rt_rl_f t
where t.bnft_vrbl_rt_rl_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_bnft_vrbl_rt_rl_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.bnft_vrbl_rt_rl_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
bnft_vrbl_rt_rl_id,
effective_start_date,
effective_end_date,
ordr_to_aply_num,
cvg_amt_calc_mthd_id,
formula_id,
business_group_id,
brr_attribute_category,
brr_attribute1,
brr_attribute2,
brr_attribute3,
brr_attribute4,
brr_attribute5,
brr_attribute6,
brr_attribute7,
brr_attribute8,
brr_attribute9,
brr_attribute10,
brr_attribute11,
brr_attribute12,
brr_attribute13,
brr_attribute14,
brr_attribute15,
brr_attribute16,
brr_attribute17,
brr_attribute18,
brr_attribute19,
brr_attribute20,
brr_attribute21,
brr_attribute22,
brr_attribute23,
brr_attribute24,
brr_attribute25,
brr_attribute26,
brr_attribute27,
brr_attribute28,
brr_attribute29,
brr_attribute30,
object_version_number
from ben_bnft_vrbl_rt_rl_f
where bnft_vrbl_rt_rl_id = p_bnft_vrbl_rt_rl_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;