The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
cm_typ_trgr_id,
effective_start_date,
effective_end_date,
cm_typ_trgr_rl,
cm_trgr_id,
cm_typ_id,
business_group_id,
ctt_attribute_category,
ctt_attribute1,
ctt_attribute2,
ctt_attribute3,
ctt_attribute4,
ctt_attribute5,
ctt_attribute6,
ctt_attribute7,
ctt_attribute8,
ctt_attribute9,
ctt_attribute10,
ctt_attribute11,
ctt_attribute12,
ctt_attribute13,
ctt_attribute14,
ctt_attribute15,
ctt_attribute16,
ctt_attribute17,
ctt_attribute18,
ctt_attribute19,
ctt_attribute20,
ctt_attribute21,
ctt_attribute22,
ctt_attribute23,
ctt_attribute24,
ctt_attribute25,
ctt_attribute26,
ctt_attribute27,
ctt_attribute28,
ctt_attribute29,
ctt_attribute30,
object_version_number
from ben_cm_typ_trgr_f
where cm_typ_trgr_id = p_cm_typ_trgr_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
from ben_cm_typ_trgr_f t
where t.cm_typ_trgr_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_trgr_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.cm_typ_trgr_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
cm_typ_trgr_id,
effective_start_date,
effective_end_date,
cm_typ_trgr_rl,
cm_trgr_id,
cm_typ_id,
business_group_id,
ctt_attribute_category,
ctt_attribute1,
ctt_attribute2,
ctt_attribute3,
ctt_attribute4,
ctt_attribute5,
ctt_attribute6,
ctt_attribute7,
ctt_attribute8,
ctt_attribute9,
ctt_attribute10,
ctt_attribute11,
ctt_attribute12,
ctt_attribute13,
ctt_attribute14,
ctt_attribute15,
ctt_attribute16,
ctt_attribute17,
ctt_attribute18,
ctt_attribute19,
ctt_attribute20,
ctt_attribute21,
ctt_attribute22,
ctt_attribute23,
ctt_attribute24,
ctt_attribute25,
ctt_attribute26,
ctt_attribute27,
ctt_attribute28,
ctt_attribute29,
ctt_attribute30,
object_version_number
from ben_cm_typ_trgr_f
where cm_typ_trgr_id = p_cm_typ_trgr_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;