The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
popl_actn_typ_id,
effective_start_date,
effective_end_date,
actn_typ_due_dt_cd,
actn_typ_due_dt_rl,
actn_typ_id,
pgm_id,
pl_id,
business_group_id,
pat_attribute_category,
pat_attribute1,
pat_attribute2,
pat_attribute3,
pat_attribute4,
pat_attribute5,
pat_attribute6,
pat_attribute7,
pat_attribute8,
pat_attribute9,
pat_attribute10,
pat_attribute11,
pat_attribute12,
pat_attribute13,
pat_attribute14,
pat_attribute15,
pat_attribute16,
pat_attribute17,
pat_attribute18,
pat_attribute19,
pat_attribute20,
pat_attribute21,
pat_attribute22,
pat_attribute23,
pat_attribute24,
pat_attribute25,
pat_attribute26,
pat_attribute27,
pat_attribute28,
pat_attribute29,
pat_attribute30,
object_version_number,
mandatory,
once_or_always
from ben_popl_actn_typ_f
where popl_actn_typ_id = p_popl_actn_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.pgm_id,
t.pl_id
from ben_popl_actn_typ_f t
where t.popl_actn_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_popl_actn_typ_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.popl_actn_typ_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
popl_actn_typ_id,
effective_start_date,
effective_end_date,
actn_typ_due_dt_cd,
actn_typ_due_dt_rl,
actn_typ_id,
pgm_id,
pl_id,
business_group_id,
pat_attribute_category,
pat_attribute1,
pat_attribute2,
pat_attribute3,
pat_attribute4,
pat_attribute5,
pat_attribute6,
pat_attribute7,
pat_attribute8,
pat_attribute9,
pat_attribute10,
pat_attribute11,
pat_attribute12,
pat_attribute13,
pat_attribute14,
pat_attribute15,
pat_attribute16,
pat_attribute17,
pat_attribute18,
pat_attribute19,
pat_attribute20,
pat_attribute21,
pat_attribute22,
pat_attribute23,
pat_attribute24,
pat_attribute25,
pat_attribute26,
pat_attribute27,
pat_attribute28,
pat_attribute29,
pat_attribute30,
object_version_number,
mandatory,
once_or_always
from ben_popl_actn_typ_f
where popl_actn_typ_id = p_popl_actn_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;