The following lines contain the word 'select', 'insert', 'update' or 'delete':
select prtt_enrt_rslt_id
,effective_start_date
,effective_end_date
,business_group_id
,oipl_id
,person_id
,assignment_id
,pgm_id
,pl_id
,rplcs_sspndd_rslt_id
,ptip_id
,pl_typ_id
,ler_id
,sspndd_flag
,prtt_is_cvrd_flag
,bnft_amt
,uom
,orgnl_enrt_dt
,enrt_mthd_cd
,no_lngr_elig_flag
,enrt_ovridn_flag
,enrt_ovrid_rsn_cd
,erlst_deenrt_dt
,enrt_cvg_strt_dt
,enrt_cvg_thru_dt
,enrt_ovrid_thru_dt
,pl_ordr_num
,plip_ordr_num
,ptip_ordr_num
,oipl_ordr_num
,pen_attribute_category
,pen_attribute1
,pen_attribute2
,pen_attribute3
,pen_attribute4
,pen_attribute5
,pen_attribute6
,pen_attribute7
,pen_attribute8
,pen_attribute9
,pen_attribute10
,pen_attribute11
,pen_attribute12
,pen_attribute13
,pen_attribute14
,pen_attribute15
,pen_attribute16
,pen_attribute17
,pen_attribute18
,pen_attribute19
,pen_attribute20
,pen_attribute21
,pen_attribute22
,pen_attribute23
,pen_attribute24
,pen_attribute25
,pen_attribute26
,pen_attribute27
,pen_attribute28
,pen_attribute29
,pen_attribute30
,request_id
,program_application_id
,program_id
,program_update_date
,object_version_number
,per_in_ler_id
,bnft_typ_cd
,bnft_ordr_num
,prtt_enrt_rslt_stat_cd
,bnft_nnmntry_uom
,comp_lvl_cd
from ben_prtt_enrt_rslt_f
where prtt_enrt_rslt_id = p_prtt_enrt_rslt_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.pgm_id
,t.oipl_id
,t.pl_id
,t.pl_typ_id
,t.prtt_enrt_rslt_id
,t.ptip_id
,t.ler_id
from ben_prtt_enrt_rslt_f t
where t.prtt_enrt_rslt_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_prtt_enrt_rslt_f t
set t.effective_end_date = p_new_effective_end_date
,t.object_version_number = l_object_version_number
where t.prtt_enrt_rslt_id = p_base_key_value
and p_effective_date between
t.effective_start_date and t.effective_end_date;
update ben_prtt_enrt_rslt_f t
set t.effective_end_date = p_new_effective_end_date
,t.object_version_number = l_object_version_number
,t.prtt_enrt_rslt_stat_cd = p_prtt_enrt_rslt_stat_cd
where t.prtt_enrt_rslt_id = p_base_key_value
and p_effective_date between
t.effective_start_date and t.effective_end_date;
select prtt_enrt_rslt_id
,effective_start_date
,effective_end_date
,business_group_id
,oipl_id
,person_id
,assignment_id
,pgm_id
,pl_id
,rplcs_sspndd_rslt_id
,ptip_id
,pl_typ_id
,ler_id
,sspndd_flag
,prtt_is_cvrd_flag
,bnft_amt
,uom
,orgnl_enrt_dt
,enrt_mthd_cd
,no_lngr_elig_flag
,enrt_ovridn_flag
,enrt_ovrid_rsn_cd
,erlst_deenrt_dt
,enrt_cvg_strt_dt
,enrt_cvg_thru_dt
,enrt_ovrid_thru_dt
,pl_ordr_num
,plip_ordr_num
,ptip_ordr_num
,oipl_ordr_num
,pen_attribute_category
,pen_attribute1
,pen_attribute2
,pen_attribute3
,pen_attribute4
,pen_attribute5
,pen_attribute6
,pen_attribute7
,pen_attribute8
,pen_attribute9
,pen_attribute10
,pen_attribute11
,pen_attribute12
,pen_attribute13
,pen_attribute14
,pen_attribute15
,pen_attribute16
,pen_attribute17
,pen_attribute18
,pen_attribute19
,pen_attribute20
,pen_attribute21
,pen_attribute22
,pen_attribute23
,pen_attribute24
,pen_attribute25
,pen_attribute26
,pen_attribute27
,pen_attribute28
,pen_attribute29
,pen_attribute30
,request_id
,program_application_id
,program_id
,program_update_date
,object_version_number
,per_in_ler_id
,bnft_typ_cd
,bnft_ordr_num
,prtt_enrt_rslt_stat_cd
,bnft_nnmntry_uom
,comp_lvl_cd
from ben_prtt_enrt_rslt_f
where prtt_enrt_rslt_id = p_prtt_enrt_rslt_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_per_in_ler_id in number,
p_bnft_typ_cd in varchar2,
p_bnft_ordr_num in number,
p_prtt_enrt_rslt_stat_cd in varchar2,
p_bnft_nnmntry_uom in varchar2,
p_comp_lvl_cd in varchar2
)
Return g_rec_type is
--
l_rec g_rec_type;
l_rec.program_update_date := p_program_update_date;