The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
dsgn_rqmt_id,
effective_start_date,
effective_end_date,
mn_dpnts_rqd_num,
mx_dpnts_alwd_num,
no_mn_num_dfnd_flag,
no_mx_num_dfnd_flag,
cvr_all_elig_flag,
oipl_id,
pl_id,
opt_id,
grp_rlshp_cd,
dsgn_typ_cd,
business_group_id,
ddr_attribute_category,
ddr_attribute1,
ddr_attribute2,
ddr_attribute3,
ddr_attribute4,
ddr_attribute5,
ddr_attribute6,
ddr_attribute7,
ddr_attribute8,
ddr_attribute9,
ddr_attribute10,
ddr_attribute11,
ddr_attribute12,
ddr_attribute13,
ddr_attribute14,
ddr_attribute15,
ddr_attribute16,
ddr_attribute17,
ddr_attribute18,
ddr_attribute19,
ddr_attribute20,
ddr_attribute21,
ddr_attribute22,
ddr_attribute23,
ddr_attribute24,
ddr_attribute25,
ddr_attribute26,
ddr_attribute27,
ddr_attribute28,
ddr_attribute29,
ddr_attribute30,
object_version_number
from ben_dsgn_rqmt_f
where dsgn_rqmt_id = p_dsgn_rqmt_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.oipl_id,
t.opt_id,
t.pl_id
from ben_dsgn_rqmt_f t
where t.dsgn_rqmt_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_dsgn_rqmt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.dsgn_rqmt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
dsgn_rqmt_id,
effective_start_date,
effective_end_date,
mn_dpnts_rqd_num,
mx_dpnts_alwd_num,
no_mn_num_dfnd_flag,
no_mx_num_dfnd_flag,
cvr_all_elig_flag,
oipl_id,
pl_id,
opt_id,
grp_rlshp_cd,
dsgn_typ_cd,
business_group_id,
ddr_attribute_category,
ddr_attribute1,
ddr_attribute2,
ddr_attribute3,
ddr_attribute4,
ddr_attribute5,
ddr_attribute6,
ddr_attribute7,
ddr_attribute8,
ddr_attribute9,
ddr_attribute10,
ddr_attribute11,
ddr_attribute12,
ddr_attribute13,
ddr_attribute14,
ddr_attribute15,
ddr_attribute16,
ddr_attribute17,
ddr_attribute18,
ddr_attribute19,
ddr_attribute20,
ddr_attribute21,
ddr_attribute22,
ddr_attribute23,
ddr_attribute24,
ddr_attribute25,
ddr_attribute26,
ddr_attribute27,
ddr_attribute28,
ddr_attribute29,
ddr_attribute30,
object_version_number
from ben_dsgn_rqmt_f
where dsgn_rqmt_id = p_dsgn_rqmt_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;