The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
per_typ_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
per_typ_cd,
person_type_id,
excld_flag,
ordr_num,
business_group_id,
ptr_attribute_category,
ptr_attribute1,
ptr_attribute2,
ptr_attribute3,
ptr_attribute4,
ptr_attribute5,
ptr_attribute6,
ptr_attribute7,
ptr_attribute8,
ptr_attribute9,
ptr_attribute10,
ptr_attribute11,
ptr_attribute12,
ptr_attribute13,
ptr_attribute14,
ptr_attribute15,
ptr_attribute16,
ptr_attribute17,
ptr_attribute18,
ptr_attribute19,
ptr_attribute20,
ptr_attribute21,
ptr_attribute22,
ptr_attribute23,
ptr_attribute24,
ptr_attribute25,
ptr_attribute26,
ptr_attribute27,
ptr_attribute28,
ptr_attribute29,
ptr_attribute30,
object_version_number
from ben_per_typ_rt_f
where per_typ_rt_id = p_per_typ_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_per_typ_rt_f t
where t.per_typ_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_per_typ_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.per_typ_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
per_typ_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
per_typ_cd,
person_type_id,
excld_flag,
ordr_num,
business_group_id,
ptr_attribute_category,
ptr_attribute1,
ptr_attribute2,
ptr_attribute3,
ptr_attribute4,
ptr_attribute5,
ptr_attribute6,
ptr_attribute7,
ptr_attribute8,
ptr_attribute9,
ptr_attribute10,
ptr_attribute11,
ptr_attribute12,
ptr_attribute13,
ptr_attribute14,
ptr_attribute15,
ptr_attribute16,
ptr_attribute17,
ptr_attribute18,
ptr_attribute19,
ptr_attribute20,
ptr_attribute21,
ptr_attribute22,
ptr_attribute23,
ptr_attribute24,
ptr_attribute25,
ptr_attribute26,
ptr_attribute27,
ptr_attribute28,
ptr_attribute29,
ptr_attribute30,
object_version_number
from ben_per_typ_rt_f
where per_typ_rt_id = p_per_typ_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;