The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
pl_typ_opt_typ_id,
effective_start_date,
effective_end_date,
pl_typ_opt_typ_cd,
opt_id,
pl_typ_id,
business_group_id,
legislation_code,
legislation_subgroup,
pon_attribute_category,
pon_attribute1,
pon_attribute2,
pon_attribute3,
pon_attribute4,
pon_attribute5,
pon_attribute6,
pon_attribute7,
pon_attribute8,
pon_attribute9,
pon_attribute10,
pon_attribute11,
pon_attribute12,
pon_attribute13,
pon_attribute14,
pon_attribute15,
pon_attribute16,
pon_attribute17,
pon_attribute18,
pon_attribute19,
pon_attribute20,
pon_attribute21,
pon_attribute22,
pon_attribute23,
pon_attribute24,
pon_attribute25,
pon_attribute26,
pon_attribute27,
pon_attribute28,
pon_attribute29,
pon_attribute30,
object_version_number
from ben_pl_typ_opt_typ_f
where pl_typ_opt_typ_id = p_pl_typ_opt_typ_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.opt_id,
t.pl_typ_id
from ben_pl_typ_opt_typ_f t
where t.pl_typ_opt_typ_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_pl_typ_opt_typ_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.pl_typ_opt_typ_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
pl_typ_opt_typ_id,
effective_start_date,
effective_end_date,
pl_typ_opt_typ_cd,
opt_id,
pl_typ_id,
business_group_id,
legislation_code,
legislation_subgroup,
pon_attribute_category,
pon_attribute1,
pon_attribute2,
pon_attribute3,
pon_attribute4,
pon_attribute5,
pon_attribute6,
pon_attribute7,
pon_attribute8,
pon_attribute9,
pon_attribute10,
pon_attribute11,
pon_attribute12,
pon_attribute13,
pon_attribute14,
pon_attribute15,
pon_attribute16,
pon_attribute17,
pon_attribute18,
pon_attribute19,
pon_attribute20,
pon_attribute21,
pon_attribute22,
pon_attribute23,
pon_attribute24,
pon_attribute25,
pon_attribute26,
pon_attribute27,
pon_attribute28,
pon_attribute29,
pon_attribute30,
object_version_number
from ben_pl_typ_opt_typ_f
where pl_typ_opt_typ_id = p_pl_typ_opt_typ_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;