The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
per_info_chg_cs_ler_id,
name,
effective_start_date,
effective_end_date,
per_info_chg_cs_ler_rl,
old_val,
new_val,
whatif_lbl_txt,
rule_overrides_flag,
source_column,
source_table,
business_group_id,
psl_attribute_category,
psl_attribute1,
psl_attribute2,
psl_attribute3,
psl_attribute4,
psl_attribute5,
psl_attribute6,
psl_attribute7,
psl_attribute8,
psl_attribute9,
psl_attribute10,
psl_attribute11,
psl_attribute12,
psl_attribute13,
psl_attribute14,
psl_attribute15,
psl_attribute16,
psl_attribute17,
psl_attribute18,
psl_attribute19,
psl_attribute20,
psl_attribute21,
psl_attribute22,
psl_attribute23,
psl_attribute24,
psl_attribute25,
psl_attribute26,
psl_attribute27,
psl_attribute28,
psl_attribute29,
psl_attribute30,
object_version_number
from ben_per_info_chg_cs_ler_f
where per_info_chg_cs_ler_id = p_per_info_chg_cs_ler_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';
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_info_chg_cs_ler_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.per_info_chg_cs_ler_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
per_info_chg_cs_ler_id,
name,
effective_start_date,
effective_end_date,
per_info_chg_cs_ler_rl,
old_val,
new_val,
whatif_lbl_txt,
rule_overrides_flag,
source_column,
source_table,
business_group_id,
psl_attribute_category,
psl_attribute1,
psl_attribute2,
psl_attribute3,
psl_attribute4,
psl_attribute5,
psl_attribute6,
psl_attribute7,
psl_attribute8,
psl_attribute9,
psl_attribute10,
psl_attribute11,
psl_attribute12,
psl_attribute13,
psl_attribute14,
psl_attribute15,
psl_attribute16,
psl_attribute17,
psl_attribute18,
psl_attribute19,
psl_attribute20,
psl_attribute21,
psl_attribute22,
psl_attribute23,
psl_attribute24,
psl_attribute25,
psl_attribute26,
psl_attribute27,
psl_attribute28,
psl_attribute29,
psl_attribute30,
object_version_number
from ben_per_info_chg_cs_ler_f
where per_info_chg_cs_ler_id = p_per_info_chg_cs_ler_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;