The following lines contain the word 'select', 'insert', 'update' or 'delete':
select a.typ_cd
from ben_ler_f a
where a.ler_id = p_ler_id
and p_effective_date
between a.effective_start_date
and a.effective_end_date;
select null from ben_ptnl_ler_for_per
where person_id = p_person_id
and ler_id = p_ler_id
and lf_evt_ocrd_dt = p_lf_evt_ocrd_dt
and ptnl_ler_for_per_stat_cd = p_ptnl_ler_for_per_stat_cd
and ptnl_ler_for_per_stat_cd not in ('VOIDD', 'BCKDT')
and business_group_id = p_business_group_id;
select null
from ben_ptnl_ler_for_per a
where a.ptnl_ler_for_per_id = p_csd_by_ptnl_ler_for_per_id;
select null
from ben_enrt_perd a
where a.enrt_perd_id = p_enrt_perd_id;
select ler.qualg_evt_flag
from ben_ler_f ler
where ler.ler_id = p_ler_id
and p_effective_date between ler.effective_start_date and ler.effective_end_date;
select null
from per_all_people_f a
where a.person_id = l_person_id
and decode(l_cobra_flag, 'Y', p_effective_date, p_lf_evt_ocrd_dt) /* Bug 5672925 + 5747460*/
between a.effective_start_date
and a.effective_end_date;
select contact_person_id
from per_contact_relationships a
where a.person_id = p_person_id
and decode(l_cobra_flag, 'Y', p_effective_date, p_lf_evt_ocrd_dt) /* Bug 5672925 + 5747460*/
between a.date_start
and nvl(a.date_end,to_date('31-12-4712','DD-MM-YYYY'));
select effective_start_date from per_all_people_f
where person_id = p_person_id;
function chk_delete_allowed
(p_ptnl_ler_for_per_id in number,
p_ptnl_ler_for_per_stat_cd in varchar2,
p_business_group_id in number,
p_person_id in number,
p_ler_id in number,
p_lf_evt_ocrd_dt in date) return boolean is
--
cursor c1 is
select null
from ben_per_in_ler pil
where pil.person_id = p_person_id
and pil.business_group_id+0 = p_business_group_id
and pil.ler_id = p_ler_id
and pil.lf_evt_ocrd_dt = p_lf_evt_ocrd_dt;
l_proc varchar2(72) := g_package||'chk_delete_allowed';
end chk_delete_allowed;
l_proc varchar2(72) := g_package||'chk_delete_allowed';
Procedure insert_validate(p_rec in ben_ppl_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in ben_ppl_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
End update_validate;
Procedure delete_validate(p_rec in ben_ppl_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_ptnl_ler_for_per b
where b.ptnl_ler_for_per_id = p_ptnl_ler_for_per_id
and a.business_group_id = b.business_group_id;