The following lines contain the word 'select', 'insert', 'update' or 'delete':
and P_delete_flag = 'Y' then
DELETE po_interface_errors
WHERE interface_type = 'REQIMPORT';
DELETE po_requisitions_interface
WHERE process_flag = 'ERROR';
DELETE po_req_dist_interface
WHERE process_flag='ERROR';
and P_delete_flag = 'Y' then
DELETE po_interface_errors
WHERE interface_type = 'REQIMPORT'
AND interface_transaction_id IN
(SELECT transaction_id
FROM po_requisitions_interface
WHERE process_flag = 'ERROR'
AND interface_source_code = P_interface_source_code
);
DELETE po_requisitions_interface
WHERE process_flag = 'ERROR'
AND interface_source_code = P_interface_source_code;
DELETE po_req_dist_interface
WHERE process_flag='ERROR'
AND interface_source_code = P_interface_source_code;
and P_delete_flag = 'Y' then
DELETE po_interface_errors
WHERE interface_type = 'REQIMPORT'
AND interface_transaction_id IN
(SELECT transaction_id
FROM po_requisitions_interface
WHERE process_flag = 'ERROR'
AND batch_id = P_batch_id
);
DELETE po_requisitions_interface
WHERE process_flag = 'ERROR'
AND batch_id = P_batch_id ;
DELETE po_req_dist_interface
WHERE process_flag='ERROR'
AND batch_id=P_batch_id;
and P_delete_flag = 'Y' then
DELETE po_interface_errors
WHERE interface_type = 'REQIMPORT'
AND interface_transaction_id IN
(SELECT transaction_id
FROM po_requisitions_interface
WHERE process_flag = 'ERROR'
AND interface_source_code = P_interface_source_code
AND batch_id = P_batch_id
);
DELETE po_requisitions_interface
WHERE process_flag = 'ERROR'
AND interface_source_code = P_interface_source_code
AND batch_id = P_batch_id;
DELETE po_req_dist_interface
WHERE process_flag='ERROR'
AND interface_source_code=P_interface_source_code
AND batch_id=P_batch_id;