The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT nvl(derive_type, 'NONE')
FROM gl_currencies
WHERE currency_code = p_cur;
SELECT end_date,
level_of_summary
FROM xtr_forecast_period_temp
WHERE forecast_period_temp_id = p_pid;
main_query := 'SELECT count(*) from ' || source_view;
main_query := 'SELECT cab.forecast_period_temp_id,
src.currency_code,
SUM(src.transaction_amount) ';
INSERT INTO xtr_external_cashflows(amount_date,
amount,
currency,
company_code,
trx_type,
level_of_summary)
VALUES (amount_date,
forecast_amount,
currency,
XTR_CASH_FCST.G_party_code,
XTR_CASH_FCST.G_trx_type,
level_of_summary);