The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT 'X'
FROM pa_projects p,
gms_project_types gpt
WHERE p.project_id = x_project_id
AND p.project_type = gpt.project_type
AND gpt.sponsored_flag= 'Y' ;
SELECT * from pa_expenditure_items_all
WHERE adjusted_expenditure_item_id = x_expenditure_item_id ;
SELECT * from pa_expenditure_items_all
WHERE transferred_from_exp_item_id = x_expenditure_item_id ;
select award_id , bill_hold_flag into source_award_id ,x_flag from gms_award_distributions adl
where adl.expenditure_item_id = x_expenditure_item_id
and adl.document_type = 'EXP' ;
adl_rec.last_update_date := rev_rec.last_update_date;
adl_rec.last_updated_by := rev_rec.last_updated_by;
adl_rec.last_update_login := rev_rec.last_update_login;
adl_rec.last_update_date := new_rec.last_update_date;
adl_rec.last_updated_by := new_rec.last_updated_by;
adl_rec.last_update_login := new_rec.last_update_login;
select expenditure_type
from gms_allowable_expenditures
where allowability_schedule_id = x_allowable_id
and expenditure_type = x_expenditure_type;
select allowable_schedule_id ,end_date_active from gms_awards_all
where award_id = dest_award_id ;
select expenditure_type,expenditure_item_date
from pa_expenditure_items_all
where expenditure_item_id = x_expenditure_item_id;
select CDL.system_reference2 , -- AP INVOICE_ID
CDL.system_reference3 -- AP DIST LINE NUM
from pa_cost_distribution_lines CDL,
ap_invoice_distributions ADL
where CDL.expenditure_item_id = X_expenditure_item_id
and CDL.system_reference2 = ADL.invoice_id
and CDL.system_reference3 = ADL.distribution_line_number
and ADL.attribute6 IS NULL
and CDL.line_num = 1
and CDL.system_reference2 IS NOT NULL
and CDL.system_reference3 IS NOT NULL;
SELECT * from pa_expenditure_items_all
WHERE adjusted_expenditure_item_id = x_exp_item_id ;
SELECT * from pa_expenditure_items_all
WHERE transferred_from_exp_item_id = x_exp_item_id ;
select bill_hold_flag, award_id into x_flag, source_award_id from gms_award_distributions
where expenditure_item_id = x_exp_item_id
and award_id = source_award_id
and document_type = 'EXP' ;
adl_rec.last_update_date := rev_rec.last_update_date;
adl_rec.last_updated_by := rev_rec.last_updated_by;
adl_rec.last_update_login := rev_rec.last_update_login;
adl_rec.last_update_date := new_rec.last_update_date;
adl_rec.last_updated_by := new_rec.last_updated_by;
adl_rec.last_update_login := new_rec.last_update_login;