The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
bnft_pool_rlovr_rqmt_id,
effective_start_date,
effective_end_date,
no_mn_rlovr_pct_dfnd_flag,
no_mx_rlovr_pct_dfnd_flag,
no_mn_rlovr_val_dfnd_flag,
no_mx_rlovr_val_dfnd_flag,
rlovr_val_incrmt_num,
rlovr_val_rl,
mn_rlovr_val,
mx_rlovr_val,
val_rndg_cd,
val_rndg_rl,
pct_rndg_cd,
pct_rndg_rl,
prtt_elig_rlovr_rl,
mx_rchd_dflt_ordr_num,
pct_rlovr_incrmt_num,
mn_rlovr_pct_num,
mx_rlovr_pct_num,
crs_rlovr_procg_cd,
mx_pct_ttl_crs_cn_roll_num,
bnft_prvdr_pool_id,
acty_base_rt_id,
business_group_id,
bpr_attribute_category,
bpr_attribute1,
bpr_attribute2,
bpr_attribute3,
bpr_attribute4,
bpr_attribute5,
bpr_attribute6,
bpr_attribute7,
bpr_attribute8,
bpr_attribute9,
bpr_attribute10,
bpr_attribute11,
bpr_attribute12,
bpr_attribute13,
bpr_attribute14,
bpr_attribute15,
bpr_attribute16,
bpr_attribute17,
bpr_attribute18,
bpr_attribute19,
bpr_attribute20,
bpr_attribute21,
bpr_attribute22,
bpr_attribute23,
bpr_attribute24,
bpr_attribute25,
bpr_attribute26,
bpr_attribute27,
bpr_attribute28,
bpr_attribute29,
bpr_attribute30,
object_version_number
from ben_bnft_pool_rlovr_rqmt_f
where bnft_pool_rlovr_rqmt_id = p_bnft_pool_rlovr_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.acty_base_rt_id,
t.bnft_prvdr_pool_id
from ben_bnft_pool_rlovr_rqmt_f t
where t.bnft_pool_rlovr_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_bnft_pool_rlovr_rqmt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.bnft_pool_rlovr_rqmt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
bnft_pool_rlovr_rqmt_id,
effective_start_date,
effective_end_date,
no_mn_rlovr_pct_dfnd_flag,
no_mx_rlovr_pct_dfnd_flag,
no_mn_rlovr_val_dfnd_flag,
no_mx_rlovr_val_dfnd_flag,
rlovr_val_incrmt_num,
rlovr_val_rl,
mn_rlovr_val,
mx_rlovr_val,
val_rndg_cd,
val_rndg_rl,
pct_rndg_cd,
pct_rndg_rl,
prtt_elig_rlovr_rl,
mx_rchd_dflt_ordr_num,
pct_rlovr_incrmt_num,
mn_rlovr_pct_num,
mx_rlovr_pct_num,
crs_rlovr_procg_cd,
mx_pct_ttl_crs_cn_roll_num,
bnft_prvdr_pool_id,
acty_base_rt_id,
business_group_id,
bpr_attribute_category,
bpr_attribute1,
bpr_attribute2,
bpr_attribute3,
bpr_attribute4,
bpr_attribute5,
bpr_attribute6,
bpr_attribute7,
bpr_attribute8,
bpr_attribute9,
bpr_attribute10,
bpr_attribute11,
bpr_attribute12,
bpr_attribute13,
bpr_attribute14,
bpr_attribute15,
bpr_attribute16,
bpr_attribute17,
bpr_attribute18,
bpr_attribute19,
bpr_attribute20,
bpr_attribute21,
bpr_attribute22,
bpr_attribute23,
bpr_attribute24,
bpr_attribute25,
bpr_attribute26,
bpr_attribute27,
bpr_attribute28,
bpr_attribute29,
bpr_attribute30,
object_version_number
from ben_bnft_pool_rlovr_rqmt_f
where bnft_pool_rlovr_rqmt_id = p_bnft_pool_rlovr_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;