The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
optd_mdcr_rt_id,
effective_start_date,
effective_end_date,
optd_mdcr_flag,
exlcd_flag,
vrbl_rt_prfl_id,
business_group_id,
omr_attribute_category,
omr_attribute1,
omr_attribute2,
omr_attribute3,
omr_attribute4,
omr_attribute5,
omr_attribute6,
omr_attribute7,
omr_attribute8,
omr_attribute9,
omr_attribute10,
omr_attribute11,
omr_attribute12,
omr_attribute13,
omr_attribute14,
omr_attribute15,
omr_attribute16,
omr_attribute17,
omr_attribute18,
omr_attribute19,
omr_attribute20,
omr_attribute21,
omr_attribute22,
omr_attribute23,
omr_attribute24,
omr_attribute25,
omr_attribute26,
omr_attribute27,
omr_attribute28,
omr_attribute29,
omr_attribute30,
object_version_number
from ben_optd_mdcr_rt_f
where optd_mdcr_rt_id = p_optd_mdcr_rt_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.vrbl_rt_prfl_id
from ben_OPTD_MDCR_RT_f t
where t.optd_mdcr_rt_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_OPTD_MDCR_RT_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.optd_mdcr_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
optd_mdcr_rt_id,
effective_start_date,
effective_end_date,
optd_mdcr_flag,
exlcd_flag,
vrbl_rt_prfl_id,
business_group_id,
omr_attribute_category,
omr_attribute1,
omr_attribute2,
omr_attribute3,
omr_attribute4,
omr_attribute5,
omr_attribute6,
omr_attribute7,
omr_attribute8,
omr_attribute9,
omr_attribute10,
omr_attribute11,
omr_attribute12,
omr_attribute13,
omr_attribute14,
omr_attribute15,
omr_attribute16,
omr_attribute17,
omr_attribute18,
omr_attribute19,
omr_attribute20,
omr_attribute21,
omr_attribute22,
omr_attribute23,
omr_attribute24,
omr_attribute25,
omr_attribute26,
omr_attribute27,
omr_attribute28,
omr_attribute29,
omr_attribute30,
object_version_number
from ben_optd_mdcr_rt_f
where optd_mdcr_rt_id = p_optd_mdcr_rt_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;