The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from ben_yr_perd yrp
where yrp.yr_perd_id = p_yr_perd_id
and yrp.business_group_id = p_business_group_id
and exists (select null
from ben_popl_yr_perd a,
ben_yr_perd b
where a.popl_yr_perd_id <> nvl(p_popl_yr_perd_id,-1)
and a.pl_id = p_pl_id
and a.business_group_id = p_business_group_id
and a.yr_perd_id = b.yr_perd_id
and (yrp.start_date
between b.start_date
and b.end_date
or
yrp.end_date
between b.start_date
and b.end_date));
select null
from ben_yr_perd yrp
where yrp.yr_perd_id = p_yr_perd_id
and yrp.business_group_id = p_business_group_id
and exists (select null
from ben_popl_yr_perd a,
ben_yr_perd b
where a.popl_yr_perd_id <> nvl(p_popl_yr_perd_id,-1)
and a.pgm_id = p_pgm_id
and a.business_group_id = p_business_group_id
and a.yr_perd_id = b.yr_perd_id
and (yrp.start_date
between b.start_date
and b.end_date
or
yrp.end_date
between b.start_date
and b.end_date));
select null
from ben_popl_yr_perd cpy
where (cpy.pgm_id = nvl(p_pgm_id,-1) or
cpy.pl_id = nvl(p_pl_id,-1))
and cpy.yr_perd_id = p_yr_perd_id
and cpy.popl_yr_perd_id <> p_popl_yr_perd_id
and cpy.business_group_id+0 = p_business_group_id;
select null
from ben_pl_f a
where a.pl_id = p_pl_id
and p_effective_date
between a.effective_start_date
and a.effective_end_date;
select null
from ben_pgm_f a
where a.pgm_id = p_pgm_id
and p_effective_date
between a.effective_start_date
and a.effective_end_date;
select null
from ben_yr_perd a
where a.yr_perd_id = p_yr_perd_id;
select start_date, end_date
from ben_yr_perd a
where a.yr_perd_id = p_yr_perd_id;
select start_date, end_date
from ben_yr_perd a
where a.yr_perd_id = p_yr_perd_id;
select null
from ben_prtt_reimbmt_rqst_f prc
where prc.EXP_INCURD_DT > p_py_clms_thru_dt
and prc.pl_id = p_pl_id
and prc.popl_yr_perd_id_1 = p_yr_perd_id
and prc.prtt_reimbmt_rqst_stat_cd in ('APPRVD','PDINFL','PRTLYPD');
cursor c1 is select null
from ben_popl_yr_perd
Where popl_yr_perd_id <> nvl(p_popl_yr_perd_id,-1)
/* bug 2923047 -- add pgm_id also */
and
(pl_id = p_pl_id
or
pgm_id = p_pgm_id
)
and ordr_num = p_ordr_num
and business_group_id = p_business_group_id;
Procedure insert_validate(p_rec in ben_cpy_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in ben_cpy_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'update_validate';
End update_validate;
Procedure delete_validate(p_rec in ben_cpy_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_popl_yr_perd b
where b.popl_yr_perd_id = p_popl_yr_perd_id
and a.business_group_id = b.business_group_id;