The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT ach.amount,
ach.bank_account_num,
ach.bank_num,
ach.bank_account_type,
ach.currency_code,
ach.status_lookup_code,
ach.stopped_at,
ach.released_at,
ach.void_date
FROM AP_CHECKS_ALL ach
WHERE ach.check_id = NVL(checkid,ach.check_id) AND
ach.creation_date BETWEEN
nvl(startdate,ach.creation_date) AND
nvl(enddate,ach.creation_date);
/* SELECT aip.amount,
aip.bank_account_num,
aip.bank_num,
aip.bank_account_type,
ach.currency_code,
ach.status_lookup_code
FROM AP_INVOICE_PAYMENTS_ALL aip,
AP_CHECKS_ALL ach
WHERE aip.check_id = NVL(checkid,aip.check_id) AND
aip.creation_date BETWEEN
nvl(startdate,aip.creation_date) AND
nvl(enddate,aip.creation_date)
AND ach.check_id = aip.check_id;
select displayed_field into checkstatus
from ap_lookup_codes
where lookup_type = 'CHECK STATE'
and lookup_code = wcheck_status;
select displayed_field into status
from ap_lookup_codes
where lookup_type = 'CHECK STATE'
and lookup_code = 'VOID';
select displayed_field into status
from ap_lookup_codes
where lookup_type = 'STOP PAYMENT STATUS'
and lookup_code = 'STOPPED';
select displayed_field into status
from ap_lookup_codes
where lookup_type = 'STOP PAYMENT STATUS'
and lookup_code = 'RELEASED';