The following lines contain the word 'select', 'insert', 'update' or 'delete':
select ppf.business_group_id
from per_all_people_f ppf -- bug 3577703. Use table instead of secure view.
where ppf.person_id = p_person_id
and p_effective_date between
ppf.effective_start_date and ppf.effective_end_date;
select ppf.business_group_id
from per_all_people_f ppf -- Bug 3577703. Use table per_all_people_f.
where ppf.person_id = p_contact_person_id
and p_effective_date between
ppf.effective_start_date and ppf.effective_end_date;
select 'Y'
from per_contact_relationships
where person_id = p_person_id
and primary_contact_flag = 'Y'
and (nvl(date_end,hr_general.end_of_time)
> nvl(p_date_start,hr_general.start_of_time)
and nvl(date_start,hr_general.start_of_time)
< nvl(p_date_end,hr_general.end_of_time));
select ler_id
from BEN_LER_F
where p_start_life_reason_id = ler_id
and p_effective_date between effective_start_date and
effective_end_date;
select ler_id
from BEN_LER_F
where p_end_life_reason_id = ler_id
and p_effective_date between effective_start_date and
effective_end_date;
select 'X'
from per_contact_relationships per
where per.person_id = p_person_id
and per.contact_person_id = p_contact_person_id
and (per.contact_relationship_id <> p_contact_relationship_id
or p_contact_relationship_id is null)
and per.contact_type = p_contact_type
and nvl(p_date_end,l_end_of_time) >= nvl(date_start,l_start_of_time)
and nvl(p_date_start,l_start_of_time) <= nvl(date_end,l_end_of_time);
select sequence_number
from per_contact_relationships con
where con.person_id = p_person_id
and con.contact_person_id = p_contact_person_id
and con.sequence_number <> p_sequence_number;
select sequence_number
from per_contact_relationships con
where con.person_id = p_person_id
and con.contact_person_id <> p_contact_person_id
and con.sequence_number = p_sequence_number;
select date_of_birth
from per_people_f ppf
where ppf.person_id = l_person_id;
Procedure check_non_updateable_args(p_rec in per_ctr_shd.g_rec_type)
is
--
l_proc varchar2(72) := g_package||'check_non_updateable_args';
end check_non_updateable_args;
Procedure insert_validate(p_rec in per_ctr_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 per_ctr_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
per_ctr_bus.check_non_updateable_args(p_rec => p_rec);
End update_validate;
Procedure delete_validate(p_rec in per_ctr_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;
select pbg.legislation_code
from per_business_groups pbg
, per_contact_relationships ctr
where ctr.contact_relationship_id = p_contact_relationship_id
and pbg.business_group_id = ctr.business_group_id;