The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ler_chg_plip_enrt_rl_id,
effective_start_date,
effective_end_date,
business_group_id,
formula_id,
ler_chg_plip_enrt_id,
ordr_to_aply_num,
lor_attribute_category,
lor_attribute1,
lor_attribute2,
lor_attribute3,
lor_attribute4,
lor_attribute5,
lor_attribute6,
lor_attribute7,
lor_attribute8,
lor_attribute9,
lor_attribute10,
lor_attribute11,
lor_attribute12,
lor_attribute13,
lor_attribute14,
lor_attribute15,
lor_attribute16,
lor_attribute17,
lor_attribute18,
lor_attribute19,
lor_attribute20,
lor_attribute21,
lor_attribute22,
lor_attribute23,
lor_attribute24,
lor_attribute25,
lor_attribute26,
lor_attribute27,
lor_attribute28,
lor_attribute29,
lor_attribute30,
object_version_number
from ben_ler_chg_plip_enrt_rl_f
where ler_chg_plip_enrt_rl_id = p_ler_chg_plip_enrt_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.formula_id,
t.ler_chg_plip_enrt_id
from ben_ler_chg_plip_enrt_rl_f t
where t.ler_chg_plip_enrt_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_ler_chg_plip_enrt_rl_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ler_chg_plip_enrt_rl_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ler_chg_plip_enrt_rl_id,
effective_start_date,
effective_end_date,
business_group_id,
formula_id,
ler_chg_plip_enrt_id,
ordr_to_aply_num,
lor_attribute_category,
lor_attribute1,
lor_attribute2,
lor_attribute3,
lor_attribute4,
lor_attribute5,
lor_attribute6,
lor_attribute7,
lor_attribute8,
lor_attribute9,
lor_attribute10,
lor_attribute11,
lor_attribute12,
lor_attribute13,
lor_attribute14,
lor_attribute15,
lor_attribute16,
lor_attribute17,
lor_attribute18,
lor_attribute19,
lor_attribute20,
lor_attribute21,
lor_attribute22,
lor_attribute23,
lor_attribute24,
lor_attribute25,
lor_attribute26,
lor_attribute27,
lor_attribute28,
lor_attribute29,
lor_attribute30,
object_version_number
from ben_ler_chg_plip_enrt_rl_f
where ler_chg_plip_enrt_rl_id = p_ler_chg_plip_enrt_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;