The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ler_bnft_rstrn_id,
effective_start_date,
effective_end_date,
no_mx_cvg_amt_apls_flag,
no_mn_cvg_incr_apls_flag,
no_mx_cvg_incr_apls_flag,
mx_cvg_incr_wcf_alwd_amt,
mx_cvg_incr_alwd_amt,
mx_cvg_alwd_amt,
mx_cvg_mlt_incr_num,
mx_cvg_mlt_incr_wcf_num,
mx_cvg_rl,
mx_cvg_wcfn_amt,
mx_cvg_wcfn_mlt_num,
mn_cvg_amt,
mn_cvg_rl,
cvg_incr_r_decr_only_cd,
unsspnd_enrt_cd,
dflt_to_asn_pndg_ctfn_cd,
dflt_to_asn_pndg_ctfn_rl,
ler_id,
pl_id,
business_group_id,
plip_id,
lbr_attribute_category,
lbr_attribute1,
lbr_attribute2,
lbr_attribute3,
lbr_attribute4,
lbr_attribute5,
lbr_attribute6,
lbr_attribute7,
lbr_attribute8,
lbr_attribute9,
lbr_attribute10,
lbr_attribute11,
lbr_attribute12,
lbr_attribute13,
lbr_attribute14,
lbr_attribute15,
lbr_attribute16,
lbr_attribute17,
lbr_attribute18,
lbr_attribute19,
lbr_attribute20,
lbr_attribute21,
lbr_attribute22,
lbr_attribute23,
lbr_attribute24,
lbr_attribute25,
lbr_attribute26,
lbr_attribute27,
lbr_attribute28,
lbr_attribute29,
lbr_attribute30,
susp_if_ctfn_not_prvd_flag,
ctfn_determine_cd,
object_version_number
from ben_ler_bnft_rstrn_f
where ler_bnft_rstrn_id = p_ler_bnft_rstrn_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.ler_id,
t.pl_id
from ben_ler_bnft_rstrn_f t
where t.ler_bnft_rstrn_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_ler_bnft_rstrn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ler_bnft_rstrn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ler_bnft_rstrn_id,
effective_start_date,
effective_end_date,
no_mx_cvg_amt_apls_flag,
no_mn_cvg_incr_apls_flag,
no_mx_cvg_incr_apls_flag,
mx_cvg_incr_wcf_alwd_amt,
mx_cvg_incr_alwd_amt,
mx_cvg_alwd_amt,
mx_cvg_mlt_incr_num,
mx_cvg_mlt_incr_wcf_num,
mx_cvg_rl,
mx_cvg_wcfn_amt,
mx_cvg_wcfn_mlt_num,
mn_cvg_amt,
mn_cvg_rl,
cvg_incr_r_decr_only_cd,
unsspnd_enrt_cd,
dflt_to_asn_pndg_ctfn_cd,
dflt_to_asn_pndg_ctfn_rl,
ler_id,
pl_id,
business_group_id,
plip_id,
lbr_attribute_category,
lbr_attribute1,
lbr_attribute2,
lbr_attribute3,
lbr_attribute4,
lbr_attribute5,
lbr_attribute6,
lbr_attribute7,
lbr_attribute8,
lbr_attribute9,
lbr_attribute10,
lbr_attribute11,
lbr_attribute12,
lbr_attribute13,
lbr_attribute14,
lbr_attribute15,
lbr_attribute16,
lbr_attribute17,
lbr_attribute18,
lbr_attribute19,
lbr_attribute20,
lbr_attribute21,
lbr_attribute22,
lbr_attribute23,
lbr_attribute24,
lbr_attribute25,
lbr_attribute26,
lbr_attribute27,
lbr_attribute28,
lbr_attribute29,
lbr_attribute30,
susp_if_ctfn_not_prvd_flag,
ctfn_determine_cd,
object_version_number
from ben_ler_bnft_rstrn_f
where ler_bnft_rstrn_id = p_ler_bnft_rstrn_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;