The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
elig_cvrd_dpnt_id,
effective_start_date,
effective_end_date,
business_group_id,
prtt_enrt_rslt_id,
dpnt_person_id,
cvg_strt_dt,
cvg_thru_dt,
cvg_pndg_flag,
pdp_attribute_category,
pdp_attribute1,
pdp_attribute2,
pdp_attribute3,
pdp_attribute4,
pdp_attribute5,
pdp_attribute6,
pdp_attribute7,
pdp_attribute8,
pdp_attribute9,
pdp_attribute10,
pdp_attribute11,
pdp_attribute12,
pdp_attribute13,
pdp_attribute14,
pdp_attribute15,
pdp_attribute16,
pdp_attribute17,
pdp_attribute18,
pdp_attribute19,
pdp_attribute20,
pdp_attribute21,
pdp_attribute22,
pdp_attribute23,
pdp_attribute24,
pdp_attribute25,
pdp_attribute26,
pdp_attribute27,
pdp_attribute28,
pdp_attribute29,
pdp_attribute30,
request_id,
program_application_id,
program_id,
program_update_date,
object_version_number,
ovrdn_flag,
per_in_ler_id,
ovrdn_thru_dt
from ben_elig_cvrd_dpnt_f
where elig_cvrd_dpnt_id = p_elig_cvrd_dpnt_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.prtt_enrt_rslt_id
from ben_elig_cvrd_dpnt_f t
where t.elig_cvrd_dpnt_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_cvrd_dpnt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.elig_cvrd_dpnt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
elig_cvrd_dpnt_id,
effective_start_date,
effective_end_date,
business_group_id,
prtt_enrt_rslt_id,
dpnt_person_id,
cvg_strt_dt,
cvg_thru_dt,
cvg_pndg_flag,
pdp_attribute_category,
pdp_attribute1,
pdp_attribute2,
pdp_attribute3,
pdp_attribute4,
pdp_attribute5,
pdp_attribute6,
pdp_attribute7,
pdp_attribute8,
pdp_attribute9,
pdp_attribute10,
pdp_attribute11,
pdp_attribute12,
pdp_attribute13,
pdp_attribute14,
pdp_attribute15,
pdp_attribute16,
pdp_attribute17,
pdp_attribute18,
pdp_attribute19,
pdp_attribute20,
pdp_attribute21,
pdp_attribute22,
pdp_attribute23,
pdp_attribute24,
pdp_attribute25,
pdp_attribute26,
pdp_attribute27,
pdp_attribute28,
pdp_attribute29,
pdp_attribute30,
request_id,
program_application_id,
program_id,
program_update_date,
object_version_number,
ovrdn_flag,
per_in_ler_id,
ovrdn_thru_dt
from ben_elig_cvrd_dpnt_f
where elig_cvrd_dpnt_id = p_elig_cvrd_dpnt_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,
p_ovrdn_flag in varchar2,
p_per_in_ler_id in number,
p_ovrdn_thru_dt in date
)
Return g_rec_type is
--
l_rec g_rec_type;
l_rec.program_update_date := p_program_update_date;