The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
cm_typ_usg_id,
effective_start_date,
effective_end_date,
all_r_any_cd,
cm_usg_rl,
descr_text,
pgm_id,
pl_id,
pl_typ_id,
enrt_perd_id,
actn_typ_id,
cm_typ_id,
ler_id,
business_group_id,
ctu_attribute_category,
ctu_attribute1,
ctu_attribute2,
ctu_attribute3,
ctu_attribute4,
ctu_attribute5,
ctu_attribute6,
ctu_attribute7,
ctu_attribute8,
ctu_attribute9,
ctu_attribute10,
ctu_attribute11,
ctu_attribute12,
ctu_attribute13,
ctu_attribute14,
ctu_attribute15,
ctu_attribute16,
ctu_attribute17,
ctu_attribute18,
ctu_attribute19,
ctu_attribute20,
ctu_attribute21,
ctu_attribute22,
ctu_attribute23,
ctu_attribute24,
ctu_attribute25,
ctu_attribute26,
ctu_attribute27,
ctu_attribute28,
ctu_attribute29,
ctu_attribute30,
object_version_number
from ben_cm_typ_usg_f
where cm_typ_usg_id = p_cm_typ_usg_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.cm_typ_id,
t.pl_id,
t.pl_typ_id
from ben_cm_typ_usg_f t
where t.cm_typ_usg_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_cm_typ_usg_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.cm_typ_usg_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
cm_typ_usg_id,
effective_start_date,
effective_end_date,
all_r_any_cd,
cm_usg_rl,
descr_text,
pgm_id,
pl_id,
pl_typ_id,
enrt_perd_id,
actn_typ_id,
cm_typ_id,
ler_id,
business_group_id,
ctu_attribute_category,
ctu_attribute1,
ctu_attribute2,
ctu_attribute3,
ctu_attribute4,
ctu_attribute5,
ctu_attribute6,
ctu_attribute7,
ctu_attribute8,
ctu_attribute9,
ctu_attribute10,
ctu_attribute11,
ctu_attribute12,
ctu_attribute13,
ctu_attribute14,
ctu_attribute15,
ctu_attribute16,
ctu_attribute17,
ctu_attribute18,
ctu_attribute19,
ctu_attribute20,
ctu_attribute21,
ctu_attribute22,
ctu_attribute23,
ctu_attribute24,
ctu_attribute25,
ctu_attribute26,
ctu_attribute27,
ctu_attribute28,
ctu_attribute29,
ctu_attribute30,
object_version_number
from ben_cm_typ_usg_f
where cm_typ_usg_id = p_cm_typ_usg_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;