The following lines contain the word 'select', 'insert', 'update' or 'delete':
select *
from per_all_people_f
where person_id = l_person_id
and trunc(effective_start_date) = l_start_date
and trunc(effective_end_date) = l_end_date;
select *
from per_all_assignments_f
where assignment_id = l_assignment_id
and trunc(effective_start_date) = l_start_date
and trunc(effective_end_date) = l_end_date;
l_update_date varchar2(30);
l_updated_by varchar2(20);
l_update varchar(1) default 'Y'; -- Bug 4597033
select name
from wf_local_roles
where orig_system = 'PER'
and orig_system_id = p_person_id
and rownum = 1; -- This extra WHERE condition is added as per the request of "tpapired"
if nvl(p_action,'NO_DELETE') = 'DELETE' then
--
hr_utility.set_location('Delete Person '||l_proc,20);
p_name => 'DELETE',
p_value => 'TRUE',
p_parameterlist => l_parameters);
l_update := 'N'; -- Bug 4597033
if l_update = 'Y' then
wf_event.addparametertolist(
p_name => 'WFSYNCH_OVERWRITE',
p_value => 'TRUE',
p_parameterlist => l_parameters);
select min(effective_start_date)
from per_all_assignments_f
where assignment_id = l_assignment_id
and position_id = l_position_id
and nvl(assignment_type,'Z') = 'E'
and nvl(primary_flag,'Z') = 'Y';
select max(nvl(date_end, hr_api.g_eot))
from per_all_positions
where position_id = l_position_id;
if nvl(p_action,'NO_DELETE') = 'DELETE' then
hr_utility.set_location('Delete Assignment ',25);
select name
from wf_local_roles
where orig_system = 'PER'
and orig_system_id = p_person_id
and rownum = 1; -- This extra WHERE condition is added as per the request of "tpapired"
select party_id
from per_all_people_f
where person_id = p_rec.person_id;