The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
acty_rt_ded_sched_id,
effective_start_date,
effective_end_date,
business_group_id,
ded_sched_py_freq_id,
acty_base_rt_id,
ded_sched_rl,
ded_sched_cd,
ads_attribute_category,
ads_attribute1,
ads_attribute2,
ads_attribute3,
ads_attribute4,
ads_attribute5,
ads_attribute6,
ads_attribute7,
ads_attribute8,
ads_attribute9,
ads_attribute10,
ads_attribute11,
ads_attribute12,
ads_attribute13,
ads_attribute14,
ads_attribute15,
ads_attribute16,
ads_attribute17,
ads_attribute18,
ads_attribute19,
ads_attribute20,
ads_attribute21,
ads_attribute22,
ads_attribute23,
ads_attribute24,
ads_attribute25,
ads_attribute26,
ads_attribute27,
ads_attribute28,
ads_attribute29,
ads_attribute30,
object_version_number
from ben_acty_rt_ded_sched_f
where acty_rt_ded_sched_id = p_acty_rt_ded_sched_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.acty_base_rt_id
from ben_acty_rt_ded_sched_f t
where t.acty_rt_ded_sched_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_acty_rt_ded_sched_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.acty_rt_ded_sched_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
acty_rt_ded_sched_id,
effective_start_date,
effective_end_date,
business_group_id,
ded_sched_py_freq_id,
acty_base_rt_id,
ded_sched_rl,
ded_sched_cd,
ads_attribute_category,
ads_attribute1,
ads_attribute2,
ads_attribute3,
ads_attribute4,
ads_attribute5,
ads_attribute6,
ads_attribute7,
ads_attribute8,
ads_attribute9,
ads_attribute10,
ads_attribute11,
ads_attribute12,
ads_attribute13,
ads_attribute14,
ads_attribute15,
ads_attribute16,
ads_attribute17,
ads_attribute18,
ads_attribute19,
ads_attribute20,
ads_attribute21,
ads_attribute22,
ads_attribute23,
ads_attribute24,
ads_attribute25,
ads_attribute26,
ads_attribute27,
ads_attribute28,
ads_attribute29,
ads_attribute30,
object_version_number
from ben_acty_rt_ded_sched_f
where acty_rt_ded_sched_id = p_acty_rt_ded_sched_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;