The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
comp_lvl_acty_rt_id,
effective_start_date,
effective_end_date,
dflt_flag,
comp_lvl_fctr_id,
acty_base_rt_id,
business_group_id,
btr_attribute_category,
btr_attribute1,
btr_attribute2,
btr_attribute3,
btr_attribute4,
btr_attribute5,
btr_attribute6,
btr_attribute7,
btr_attribute8,
btr_attribute9,
btr_attribute10,
btr_attribute11,
btr_attribute12,
btr_attribute13,
btr_attribute14,
btr_attribute15,
btr_attribute16,
btr_attribute17,
btr_attribute18,
btr_attribute19,
btr_attribute20,
btr_attribute21,
btr_attribute22,
btr_attribute23,
btr_attribute24,
btr_attribute25,
btr_attribute26,
btr_attribute27,
btr_attribute28,
btr_attribute29,
btr_attribute30,
object_version_number
from ben_comp_lvl_acty_rt_f
where comp_lvl_acty_rt_id = p_comp_lvl_acty_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.acty_base_rt_id
from ben_comp_lvl_acty_rt_f t
where t.comp_lvl_acty_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_comp_lvl_acty_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.comp_lvl_acty_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
comp_lvl_acty_rt_id,
effective_start_date,
effective_end_date,
dflt_flag,
comp_lvl_fctr_id,
acty_base_rt_id,
business_group_id,
btr_attribute_category,
btr_attribute1,
btr_attribute2,
btr_attribute3,
btr_attribute4,
btr_attribute5,
btr_attribute6,
btr_attribute7,
btr_attribute8,
btr_attribute9,
btr_attribute10,
btr_attribute11,
btr_attribute12,
btr_attribute13,
btr_attribute14,
btr_attribute15,
btr_attribute16,
btr_attribute17,
btr_attribute18,
btr_attribute19,
btr_attribute20,
btr_attribute21,
btr_attribute22,
btr_attribute23,
btr_attribute24,
btr_attribute25,
btr_attribute26,
btr_attribute27,
btr_attribute28,
btr_attribute29,
btr_attribute30,
object_version_number
from ben_comp_lvl_acty_rt_f
where comp_lvl_acty_rt_id = p_comp_lvl_acty_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;