The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
grade_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
vrbl_rt_prfl_id,
grade_id,
ordr_num,
excld_flag,
grr_attribute_category,
grr_attribute1,
grr_attribute2,
grr_attribute3,
grr_attribute4,
grr_attribute5,
grr_attribute6,
grr_attribute7,
grr_attribute8,
grr_attribute9,
grr_attribute10,
grr_attribute11,
grr_attribute12,
grr_attribute13,
grr_attribute14,
grr_attribute15,
grr_attribute16,
grr_attribute17,
grr_attribute18,
grr_attribute19,
grr_attribute20,
grr_attribute21,
grr_attribute22,
grr_attribute23,
grr_attribute24,
grr_attribute25,
grr_attribute26,
grr_attribute27,
grr_attribute28,
grr_attribute29,
grr_attribute30,
object_version_number
from ben_grade_rt_f
where grade_rt_id = p_grade_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_grade_rt_f t
where t.grade_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_grade_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.grade_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
grade_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
vrbl_rt_prfl_id,
grade_id,
ordr_num,
excld_flag,
grr_attribute_category,
grr_attribute1,
grr_attribute2,
grr_attribute3,
grr_attribute4,
grr_attribute5,
grr_attribute6,
grr_attribute7,
grr_attribute8,
grr_attribute9,
grr_attribute10,
grr_attribute11,
grr_attribute12,
grr_attribute13,
grr_attribute14,
grr_attribute15,
grr_attribute16,
grr_attribute17,
grr_attribute18,
grr_attribute19,
grr_attribute20,
grr_attribute21,
grr_attribute22,
grr_attribute23,
grr_attribute24,
grr_attribute25,
grr_attribute26,
grr_attribute27,
grr_attribute28,
grr_attribute29,
grr_attribute30,
object_version_number
from ben_grade_rt_f
where grade_rt_id = p_grade_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;