The following lines contain the word 'select', 'insert', 'update' or 'delete':
select min(asg.effective_start_date)
, asg.assignment_id
from per_assignments_f asg
where asg.period_of_service_id = p_period_of_service_id
group by asg.assignment_id
order by 1 desc;
select max(per.effective_start_date)
from per_all_people_f per
where per.person_id = p_person_id;
select ptu.effective_start_date
from per_person_type_usages_f ptu, per_person_types ppt
where ptu.person_id = p_person_id
and ptu.person_type_id = ppt.person_type_id
and ptu.effective_start_date > p_actual_termination_date
and ppt.system_person_type in ('EMP','CWK');
if (nvl(fnd_profile.value('HR_ALLOW_FPT_UPDATES'),'N') = 'Y') then
open not_allowed_ppt;
SELECT pds2.date_start
,pds2.actual_termination_date
,pds2.last_standard_process_date
,pds2.final_process_date
FROM per_periods_of_service pds1
,per_periods_of_service pds2
WHERE pds1.period_of_service_id = p_period_of_service_id
AND pds1.person_id = pds2.person_id
AND pds1.period_of_service_id <> pds2.period_of_service_id
AND pds2.date_start > pds1.date_start
ORDER BY pds2.date_start;
SELECT pds2.final_process_date
FROM per_periods_of_service pds1
,per_periods_of_service pds2
WHERE pds1.period_of_service_id = p_period_of_service_id
AND pds1.person_id = pds2.person_id
AND pds1.period_of_service_id <> pds2.period_of_service_id
AND pds2.date_start > pds1.date_start;
SELECT MAX(pds2.final_process_date)
FROM per_periods_of_service pds1
,per_periods_of_service pds2
WHERE pds1.period_of_service_id = p_period_of_service_id
AND pds1.person_id = pds2.person_id
AND pds1.period_of_service_id <> pds2.period_of_service_id
AND pds2.date_start < pds1.date_start;
select bus.legislation_code
from per_business_groups bus
where bus.business_group_id = p_business_group_id;
select bus.legislation_code
from per_business_groups bus
where bus.business_group_id = p_business_group_id;
select null
from per_periods_of_service pds
where pds.person_id = p_person_id
and pds.date_start = p_date_start;
select null
from per_all_people_f p,
per_person_types pt
where p.person_id = p_person_id
and p.effective_start_date = p_date_start
and pt.person_type_id = p.person_type_id
and pt.system_person_type in ('EMP', 'EMP_APL');
select null
from per_all_people_f per
where per.person_id = p_termination_accepted_person
and nvl(p_accepted_termination_date, p_effective_date) >=
(select min(per2.effective_start_date)
from per_all_people_f per2
where per2.person_id = per.person_id)
and nvl(p_accepted_termination_date, p_effective_date) <=
(select max(per3.effective_end_date)
from per_all_people_f per3
where per3.person_id = per.person_id);
Procedure check_non_updateable_args
--
(p_rec in per_pds_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_pds_shd.g_rec_type
,p_effective_date in date
,p_validate_df_flex in boolean) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in per_pds_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
check_non_updateable_args(p_rec => p_rec);
End update_validate;
Procedure delete_validate(p_rec in per_pds_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_periods_of_service pds
where pds.period_of_service_id = p_period_of_service_id
and pbg.business_group_id = pds.business_group_id;