The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT psepi.pay_item_type
BULK COLLECT INTO l_payment_types_tbl
FROM po_style_enabled_pay_items psepi
WHERE psepi.style_id = p_style_id;
SELECT poh.style_id
INTO l_style_id
FROM po_headers_all poh
WHERE poh.po_header_id = p_po_header_id;
SELECT poh.style_id
INTO l_style_id
FROM po_headers_all poh
WHERE poh.po_header_id = p_po_header_id;
SELECT poh.style_id
INTO l_style_id
FROM po_headers_all poh
WHERE poh.po_header_id = p_po_header_id;
SELECT poll.amount
INTO l_advance_amount
FROM po_line_locations_all poll
WHERE poll.po_line_id = p_po_line_id
AND poll.payment_type = 'ADVANCE';
SELECT polla.amount
INTO l_advance_amount
FROM po_line_locations_archive_all polla
WHERE polla.po_line_id = p_po_line_id
AND polla.revision_num =
(
SELECT MAX(polla2.revision_num)
FROM po_line_locations_archive_all polla2
WHERE polla2.line_location_id = polla.line_location_id
AND polla2.revision_num <= p_doc_revision_num
)
AND polla.payment_type = 'ADVANCE';