The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
elig_per_opt_id,
elig_per_id,
effective_start_date,
effective_end_date,
prtn_ovridn_flag,
prtn_ovridn_thru_dt,
no_mx_prtn_ovrid_thru_flag,
elig_flag,
prtn_strt_dt,
prtn_end_dt,
wait_perd_cmpltn_date,
wait_perd_strt_dt,
prtn_ovridn_rsn_cd,
pct_fl_tm_val,
opt_id,
per_in_ler_id,
rt_comp_ref_amt,
rt_cmbn_age_n_los_val,
rt_comp_ref_uom,
rt_age_val,
rt_los_val,
rt_hrs_wkd_val,
rt_hrs_wkd_bndry_perd_cd,
rt_age_uom,
rt_los_uom,
rt_pct_fl_tm_val,
rt_frz_los_flag,
rt_frz_age_flag,
rt_frz_cmp_lvl_flag,
rt_frz_pct_fl_tm_flag,
rt_frz_hrs_wkd_flag,
rt_frz_comb_age_and_los_flag,
comp_ref_amt,
cmbn_age_n_los_val,
comp_ref_uom,
age_val,
los_val,
hrs_wkd_val,
hrs_wkd_bndry_perd_cd,
age_uom,
los_uom,
frz_los_flag,
frz_age_flag,
frz_cmp_lvl_flag,
frz_pct_fl_tm_flag,
frz_hrs_wkd_flag,
frz_comb_age_and_los_flag,
ovrid_svc_dt,
inelg_rsn_cd,
once_r_cntug_cd,
oipl_ordr_num,
business_group_id,
epo_attribute_category,
epo_attribute1,
epo_attribute2,
epo_attribute3,
epo_attribute4,
epo_attribute5,
epo_attribute6,
epo_attribute7,
epo_attribute8,
epo_attribute9,
epo_attribute10,
epo_attribute11,
epo_attribute12,
epo_attribute13,
epo_attribute14,
epo_attribute15,
epo_attribute16,
epo_attribute17,
epo_attribute18,
epo_attribute19,
epo_attribute20,
epo_attribute21,
epo_attribute22,
epo_attribute23,
epo_attribute24,
epo_attribute25,
epo_attribute26,
epo_attribute27,
epo_attribute28,
epo_attribute29,
epo_attribute30,
request_id,
program_application_id,
program_id,
program_update_date,
object_version_number
from ben_elig_per_opt_f
where elig_per_opt_id = p_elig_per_opt_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.elig_per_id,
t.opt_id
from ben_elig_per_opt_f t
where t.elig_per_opt_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_elig_per_opt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.elig_per_opt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
elig_per_opt_id,
elig_per_id,
effective_start_date,
effective_end_date,
prtn_ovridn_flag,
prtn_ovridn_thru_dt,
no_mx_prtn_ovrid_thru_flag,
elig_flag,
prtn_strt_dt,
prtn_end_dt,
wait_perd_cmpltn_date,
wait_perd_strt_dt,
prtn_ovridn_rsn_cd,
pct_fl_tm_val,
opt_id,
per_in_ler_id,
rt_comp_ref_amt,
rt_cmbn_age_n_los_val,
rt_comp_ref_uom,
rt_age_val,
rt_los_val,
rt_hrs_wkd_val,
rt_hrs_wkd_bndry_perd_cd,
rt_age_uom,
rt_los_uom,
rt_pct_fl_tm_val,
rt_frz_los_flag,
rt_frz_age_flag,
rt_frz_cmp_lvl_flag,
rt_frz_pct_fl_tm_flag,
rt_frz_hrs_wkd_flag,
rt_frz_comb_age_and_los_flag,
comp_ref_amt,
cmbn_age_n_los_val,
comp_ref_uom,
age_val,
los_val,
hrs_wkd_val,
hrs_wkd_bndry_perd_cd,
age_uom,
los_uom,
frz_los_flag,
frz_age_flag,
frz_cmp_lvl_flag,
frz_pct_fl_tm_flag,
frz_hrs_wkd_flag,
frz_comb_age_and_los_flag,
ovrid_svc_dt,
inelg_rsn_cd,
once_r_cntug_cd,
oipl_ordr_num,
business_group_id,
epo_attribute_category,
epo_attribute1,
epo_attribute2,
epo_attribute3,
epo_attribute4,
epo_attribute5,
epo_attribute6,
epo_attribute7,
epo_attribute8,
epo_attribute9,
epo_attribute10,
epo_attribute11,
epo_attribute12,
epo_attribute13,
epo_attribute14,
epo_attribute15,
epo_attribute16,
epo_attribute17,
epo_attribute18,
epo_attribute19,
epo_attribute20,
epo_attribute21,
epo_attribute22,
epo_attribute23,
epo_attribute24,
epo_attribute25,
epo_attribute26,
epo_attribute27,
epo_attribute28,
epo_attribute29,
epo_attribute30,
request_id,
program_application_id,
program_id,
program_update_date,
object_version_number
from ben_elig_per_opt_f
where elig_per_opt_id = p_elig_per_opt_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;
p_program_update_date in date,
p_object_version_number in number
)
Return g_rec_type is
--
l_rec g_rec_type;
l_rec.program_update_date := p_program_update_date;