The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
lbr_mmbr_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
excld_flag,
lbr_mmbr_flag,
ordr_num,
business_group_id,
lmm_attribute_category,
lmm_attribute1,
lmm_attribute2,
lmm_attribute3,
lmm_attribute4,
lmm_attribute5,
lmm_attribute6,
lmm_attribute7,
lmm_attribute8,
lmm_attribute9,
lmm_attribute10,
lmm_attribute11,
lmm_attribute12,
lmm_attribute13,
lmm_attribute14,
lmm_attribute15,
lmm_attribute16,
lmm_attribute17,
lmm_attribute18,
lmm_attribute19,
lmm_attribute20,
lmm_attribute21,
lmm_attribute22,
lmm_attribute23,
lmm_attribute24,
lmm_attribute25,
lmm_attribute26,
lmm_attribute27,
lmm_attribute28,
lmm_attribute29,
lmm_attribute30,
object_version_number
from ben_lbr_mmbr_rt_f
where lbr_mmbr_rt_id = p_lbr_mmbr_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_lbr_mmbr_rt_f t
where t.lbr_mmbr_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_lbr_mmbr_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.lbr_mmbr_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
lbr_mmbr_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
excld_flag,
lbr_mmbr_flag,
ordr_num,
business_group_id,
lmm_attribute_category,
lmm_attribute1,
lmm_attribute2,
lmm_attribute3,
lmm_attribute4,
lmm_attribute5,
lmm_attribute6,
lmm_attribute7,
lmm_attribute8,
lmm_attribute9,
lmm_attribute10,
lmm_attribute11,
lmm_attribute12,
lmm_attribute13,
lmm_attribute14,
lmm_attribute15,
lmm_attribute16,
lmm_attribute17,
lmm_attribute18,
lmm_attribute19,
lmm_attribute20,
lmm_attribute21,
lmm_attribute22,
lmm_attribute23,
lmm_attribute24,
lmm_attribute25,
lmm_attribute26,
lmm_attribute27,
lmm_attribute28,
lmm_attribute29,
lmm_attribute30,
object_version_number
from ben_lbr_mmbr_rt_f
where lbr_mmbr_rt_id = p_lbr_mmbr_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;