The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
per_cm_id,
effective_start_date,
effective_end_date,
lf_evt_ocrd_dt,
rqstbl_untl_dt,
ler_id,
per_in_ler_id,
prtt_enrt_actn_id,
person_id,
bnf_person_id,
dpnt_person_id,
cm_typ_id,
business_group_id,
pcm_attribute_category,
pcm_attribute1,
pcm_attribute2,
pcm_attribute3,
pcm_attribute4,
pcm_attribute5,
pcm_attribute6,
pcm_attribute7,
pcm_attribute8,
pcm_attribute9,
pcm_attribute10,
pcm_attribute11,
pcm_attribute12,
pcm_attribute13,
pcm_attribute14,
pcm_attribute15,
pcm_attribute16,
pcm_attribute17,
pcm_attribute18,
pcm_attribute19,
pcm_attribute20,
pcm_attribute21,
pcm_attribute22,
pcm_attribute23,
pcm_attribute24,
pcm_attribute25,
pcm_attribute26,
pcm_attribute27,
pcm_attribute28,
pcm_attribute29,
pcm_attribute30,
request_id,
program_application_id,
program_id,
program_update_date,
object_version_number
from ben_per_cm_f
where per_cm_id = p_per_cm_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.cm_typ_id,
t.prtt_enrt_actn_id
from ben_per_cm_f t
where t.per_cm_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_cm_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.per_cm_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
per_cm_id,
effective_start_date,
effective_end_date,
lf_evt_ocrd_dt,
rqstbl_untl_dt,
ler_id,
per_in_ler_id,
prtt_enrt_actn_id,
person_id,
bnf_person_id,
dpnt_person_id,
cm_typ_id,
business_group_id,
pcm_attribute_category,
pcm_attribute1,
pcm_attribute2,
pcm_attribute3,
pcm_attribute4,
pcm_attribute5,
pcm_attribute6,
pcm_attribute7,
pcm_attribute8,
pcm_attribute9,
pcm_attribute10,
pcm_attribute11,
pcm_attribute12,
pcm_attribute13,
pcm_attribute14,
pcm_attribute15,
pcm_attribute16,
pcm_attribute17,
pcm_attribute18,
pcm_attribute19,
pcm_attribute20,
pcm_attribute21,
pcm_attribute22,
pcm_attribute23,
pcm_attribute24,
pcm_attribute25,
pcm_attribute26,
pcm_attribute27,
pcm_attribute28,
pcm_attribute29,
pcm_attribute30,
request_id,
program_application_id,
program_id,
program_update_date,
object_version_number
from ben_per_cm_f
where per_cm_id = p_per_cm_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;
p_program_update_date in date,
p_object_version_number in number
)
Return g_rec_type is
--
l_rec g_rec_type;
l_rec.program_update_date := p_program_update_date;