The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from PA_TRANSACTION_INTERFACE_ALL pa,
--FP M CWK changes
--PER_PEOPLE_F ppf
PER_ALL_PEOPLE_F ppf
--where pa.employee_number = ppf.employee_number
where pa.employee_number in (ppf.employee_number, ppf.npw_number)
and ppf.person_id = P_PERSON_ID
AND pa.transaction_status_code <> 'A';
select null
from PA_ROUTINGS pa
where pa.routed_from_person_id = P_PERSON_ID
OR pa.routed_to_person_id = P_PERSON_ID;
select null
from PA_PTE_MULTI_ORG_EMP_MAP pa
where pa.person_id = P_PERSON_ID;
select null
from PA_ONLINE_EXP_SETTINGS pa
where pa.person_id = P_PERSON_ID;
select null
from PA_EXPEND_COMMENT_ALIASES pa
where pa.person_id = P_PERSON_ID;
select null
from PA_EI_DENORM pa
where pa.person_id = P_PERSON_ID;
select null
from pa_expenditures_all pa
where pa.incurred_by_person_id = P_PERSON_ID;
select null
from pa_transaction_controls pa
where pa.project_id > -1
and pa.person_id = P_PERSON_ID;
SELECT null
INTO dummy1
FROM pa_transaction_interface_all
WHERE person_id = p_person_id
AND transaction_status_code <> 'A'
AND rownum = 1;
SELECT 'Y'
FROM DUAL
WHERE EXISTS (
select null
from pa_expenditure_items_all pa
where (pa.job_id is not null
AND pa.job_id = P_JOB_ID)
OR
(pa.bill_job_id is not null
AND pa.bill_job_id = P_JOB_ID));
select null
from pa_ei_denorm pa
where (pa.job_id_1 is not null
AND pa.job_id_1 = P_JOB_ID )
OR (pa.job_id_2 is not null
AND pa.job_id_2 = P_JOB_ID )
OR (pa.job_id_3 is not null
AND pa.job_id_3 = P_JOB_ID )
OR (pa.job_id_4 is not null
AND pa.job_id_4 = P_JOB_ID )
OR (pa.job_id_5 is not null
AND pa.job_id_5 = P_JOB_ID )
OR (pa.job_id_6 is not null
AND pa.job_id_6 = P_JOB_ID )
OR (pa.job_id_7 is not null
AND pa.job_id_7 = P_JOB_ID );
select * from pa_expenditures_all
where expenditure_class_code = 'PT'
and expenditure_status_code = 'APPROVED'
and transfer_status_code = 'P';
select expenditure_item_date_1, quantity_1,
expenditure_item_date_2, quantity_2,
expenditure_item_date_3, quantity_3,
expenditure_item_date_4, quantity_4,
expenditure_item_date_5, quantity_5,
expenditure_item_date_6, quantity_6,
expenditure_item_date_7, quantity_7,
person_id
from pa_ei_denorm
where expenditure_id = p_exp_id;