The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
popl_org_id,
effective_start_date,
effective_end_date,
business_group_id,
cstmr_num,
plcy_r_grp,
pgm_id,
pl_id,
organization_id,
person_id,
cpo_attribute_category,
cpo_attribute1,
cpo_attribute2,
cpo_attribute3,
cpo_attribute4,
cpo_attribute5,
cpo_attribute6,
cpo_attribute7,
cpo_attribute8,
cpo_attribute9,
cpo_attribute10,
cpo_attribute11,
cpo_attribute12,
cpo_attribute13,
cpo_attribute14,
cpo_attribute15,
cpo_attribute16,
cpo_attribute17,
cpo_attribute18,
cpo_attribute19,
cpo_attribute20,
cpo_attribute21,
cpo_attribute22,
cpo_attribute23,
cpo_attribute24,
cpo_attribute25,
cpo_attribute26,
cpo_attribute27,
cpo_attribute28,
cpo_attribute29,
cpo_attribute30,
object_version_number
from ben_popl_org_f
where popl_org_id = p_popl_org_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.pl_id,
t.pgm_id
from ben_popl_org_f t
where t.popl_org_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_org_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.popl_org_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
popl_org_id,
effective_start_date,
effective_end_date,
business_group_id,
cstmr_num,
plcy_r_grp,
pgm_id,
pl_id,
organization_id,
person_id,
cpo_attribute_category,
cpo_attribute1,
cpo_attribute2,
cpo_attribute3,
cpo_attribute4,
cpo_attribute5,
cpo_attribute6,
cpo_attribute7,
cpo_attribute8,
cpo_attribute9,
cpo_attribute10,
cpo_attribute11,
cpo_attribute12,
cpo_attribute13,
cpo_attribute14,
cpo_attribute15,
cpo_attribute16,
cpo_attribute17,
cpo_attribute18,
cpo_attribute19,
cpo_attribute20,
cpo_attribute21,
cpo_attribute22,
cpo_attribute23,
cpo_attribute24,
cpo_attribute25,
cpo_attribute26,
cpo_attribute27,
cpo_attribute28,
cpo_attribute29,
cpo_attribute30,
object_version_number
from ben_popl_org_f
where popl_org_id = p_popl_org_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;