The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 'Y'
from pa_ci_comments
where ci_action_id = p_ci_action_id
and type_code <> 'REQUESTOR';
select pci.last_action_number
from pa_control_items pci
where pci.ci_id = p_ci_id
for update of pci.last_action_number;
UPDATE pa_control_items
set last_action_number = l_next_number + 1
where ci_id = p_ci_id;
select person_party_id from fnd_user
where user_id = p_user_id;
select customer_id from fnd_user
where user_id = p_user_id; */
select pap.party_id
from per_all_people_f pap,
fnd_user fu
where fu.user_id = p_user_id
and fu.employee_id = pap.person_id
and trunc(sysdate) between trunc(pap.effective_start_date) and trunc(pap.effective_end_date) ;
/*select h.party_id
from hz_parties h
,fnd_user f
where h.orig_system_reference = CONCAT('PER:',f.employee_id)
and f.user_id = p_user_id;*/
select party_id
from per_all_people_f p
where p.person_id = l_resource_id
and trunc(p_date) between trunc(p.effective_start_date) and trunc(p.effective_end_date);
select count(*)
into total_act
from pa_ci_actions
where ci_id = p_ci_id and
status_code = 'CI_ACTION_OPEN';
select open_action_num
from pa_control_items
where ci_id = p_ci_id;
select ci_action_id
from pa_ci_actions
where source_ci_action_id is null
start with ci_action_id = p_ci_action_id
connect by prior source_ci_action_id = ci_action_id;