The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
rltd_per_chg_cs_ler_id,
name,
effective_start_date,
effective_end_date,
old_val,
new_val,
whatif_lbl_txt,
rule_overrides_flag,
source_column,
source_table,
rltd_per_chg_cs_ler_rl,
business_group_id,
rcl_attribute_category,
rcl_attribute1,
rcl_attribute2,
rcl_attribute3,
rcl_attribute4,
rcl_attribute5,
rcl_attribute6,
rcl_attribute7,
rcl_attribute8,
rcl_attribute9,
rcl_attribute10,
rcl_attribute11,
rcl_attribute12,
rcl_attribute13,
rcl_attribute14,
rcl_attribute15,
rcl_attribute16,
rcl_attribute17,
rcl_attribute18,
rcl_attribute19,
rcl_attribute20,
rcl_attribute21,
rcl_attribute22,
rcl_attribute23,
rcl_attribute24,
rcl_attribute25,
rcl_attribute26,
rcl_attribute27,
rcl_attribute28,
rcl_attribute29,
rcl_attribute30,
object_version_number
from ben_rltd_per_chg_cs_ler_f
where rltd_per_chg_cs_ler_id = p_rltd_per_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_rltd_per_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.rltd_per_chg_cs_ler_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
rltd_per_chg_cs_ler_id,
name,
effective_start_date,
effective_end_date,
old_val,
new_val,
whatif_lbl_txt,
rule_overrides_flag,
source_column,
source_table,
rltd_per_chg_cs_ler_rl,
business_group_id,
rcl_attribute_category,
rcl_attribute1,
rcl_attribute2,
rcl_attribute3,
rcl_attribute4,
rcl_attribute5,
rcl_attribute6,
rcl_attribute7,
rcl_attribute8,
rcl_attribute9,
rcl_attribute10,
rcl_attribute11,
rcl_attribute12,
rcl_attribute13,
rcl_attribute14,
rcl_attribute15,
rcl_attribute16,
rcl_attribute17,
rcl_attribute18,
rcl_attribute19,
rcl_attribute20,
rcl_attribute21,
rcl_attribute22,
rcl_attribute23,
rcl_attribute24,
rcl_attribute25,
rcl_attribute26,
rcl_attribute27,
rcl_attribute28,
rcl_attribute29,
rcl_attribute30,
object_version_number
from ben_rltd_per_chg_cs_ler_f
where rltd_per_chg_cs_ler_id = p_rltd_per_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;