The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
brgng_unit_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
excld_flag,
ordr_num,
brgng_unit_cd,
business_group_id,
bur_attribute_category,
bur_attribute1,
bur_attribute2,
bur_attribute3,
bur_attribute4,
bur_attribute5,
bur_attribute6,
bur_attribute7,
bur_attribute8,
bur_attribute9,
bur_attribute10,
bur_attribute11,
bur_attribute12,
bur_attribute13,
bur_attribute14,
bur_attribute15,
bur_attribute16,
bur_attribute17,
bur_attribute18,
bur_attribute19,
bur_attribute20,
bur_attribute21,
bur_attribute22,
bur_attribute23,
bur_attribute24,
bur_attribute25,
bur_attribute26,
bur_attribute27,
bur_attribute28,
bur_attribute29,
bur_attribute30,
object_version_number
from ben_brgng_unit_rt_f
where brgng_unit_rt_id = p_brgng_unit_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_brgng_unit_rt_f t
where t.brgng_unit_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_brgng_unit_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.brgng_unit_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
brgng_unit_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
excld_flag,
ordr_num,
brgng_unit_cd,
business_group_id,
bur_attribute_category,
bur_attribute1,
bur_attribute2,
bur_attribute3,
bur_attribute4,
bur_attribute5,
bur_attribute6,
bur_attribute7,
bur_attribute8,
bur_attribute9,
bur_attribute10,
bur_attribute11,
bur_attribute12,
bur_attribute13,
bur_attribute14,
bur_attribute15,
bur_attribute16,
bur_attribute17,
bur_attribute18,
bur_attribute19,
bur_attribute20,
bur_attribute21,
bur_attribute22,
bur_attribute23,
bur_attribute24,
bur_attribute25,
bur_attribute26,
bur_attribute27,
bur_attribute28,
bur_attribute29,
bur_attribute30,
object_version_number
from ben_brgng_unit_rt_f
where brgng_unit_rt_id = p_brgng_unit_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;