The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
lgl_enty_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
organization_id,
excld_flag,
ordr_num,
business_group_id,
ler1_attribute_category,
ler1_attribute1,
ler1_attribute2,
ler1_attribute3,
ler1_attribute4,
ler1_attribute5,
ler1_attribute6,
ler1_attribute7,
ler1_attribute8,
ler1_attribute9,
ler1_attribute10,
ler1_attribute11,
ler1_attribute12,
ler1_attribute13,
ler1_attribute14,
ler1_attribute15,
ler1_attribute16,
ler1_attribute17,
ler1_attribute18,
ler1_attribute19,
ler1_attribute20,
ler1_attribute21,
ler1_attribute22,
ler1_attribute23,
ler1_attribute24,
ler1_attribute25,
ler1_attribute26,
ler1_attribute27,
ler1_attribute28,
ler1_attribute29,
ler1_attribute30,
object_version_number
from ben_lgl_enty_rt_f
where lgl_enty_rt_id = p_lgl_enty_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_lgl_enty_rt_f t
where t.lgl_enty_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_lgl_enty_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.lgl_enty_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
lgl_enty_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
organization_id,
excld_flag,
ordr_num,
business_group_id,
ler1_attribute_category,
ler1_attribute1,
ler1_attribute2,
ler1_attribute3,
ler1_attribute4,
ler1_attribute5,
ler1_attribute6,
ler1_attribute7,
ler1_attribute8,
ler1_attribute9,
ler1_attribute10,
ler1_attribute11,
ler1_attribute12,
ler1_attribute13,
ler1_attribute14,
ler1_attribute15,
ler1_attribute16,
ler1_attribute17,
ler1_attribute18,
ler1_attribute19,
ler1_attribute20,
ler1_attribute21,
ler1_attribute22,
ler1_attribute23,
ler1_attribute24,
ler1_attribute25,
ler1_attribute26,
ler1_attribute27,
ler1_attribute28,
ler1_attribute29,
ler1_attribute30,
object_version_number
from ben_lgl_enty_rt_f
where lgl_enty_rt_id = p_lgl_enty_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;