The following lines contain the word 'select', 'insert', 'update' or 'delete':
select ih_outcome_id
from jtf_fm_service
where server_id = P_server_ID;
select ih_failure_result_id
from jtf_fm_service where server_id = P_server_ID;
select ih_success_result_id
from jtf_fm_service where server_id = P_server_ID;
select fm.HIST_REQ_ID , fm.SOURCE_CODE_ID, fm.SOURCE_CODE, fm.OBJECT_ID, fm.OBJECT_TYPE, fm.OUTCOME_DESC, fm.SERVER_ID, fm.USER_ID, fm.OUTCOME_CODE
from JTF_FM_REQUEST_HISTORY_ALL fm
where fm.OUTCOME_CODE = 'READYTOLOG'
and fm.SERVER_ID = p_server_id
and rownum < 2
order by fm.PRIORITY, fm.HIST_REQ_ID;
select REQUEST_ID, JOB, PARTY_ID, EMAIL_ADDRESS, OUTCOME_CODE, decode(EMAIL_STATUS,'SENT',l_sent_result_id,l_not_sent_result_id) as RESULT_ID,
to_char(CREATION_DATE, 'MON DD RRRR HH24:MI:SS') as CREATION_DATE
from jtf_fm_processed
where request_id = l_request_id;
select resource_id
from jtf_rs_resource_extns
where user_id = l_user_id;
select user_data into l_user_data from jtf_ih_bulk_qtbl where msgid = hextoraw(l_mesg_id);
select user_data into l_user_data from jtf_ih_bulk_qtbl where msgid = hextoraw(l_mesg_id);
Update_history(l_header_rec.hist_req_id, 'SUCCESS');
Update_history(l_header_rec.hist_req_id, 'FAILURE');
Update_history(l_header_rec.hist_req_id, 'PARTIAL_SUCCESS');
Update_history(l_header_rec.hist_req_id, 'FAILURE');
Update_history(l_header_rec.hist_req_id, 'IHFAILED');
Update_history(l_header_rec.hist_req_id, 'IHFAILED');
Update_history(l_header_rec.hist_req_id, 'IHFAILED');
Update_history(l_header_rec.hist_req_id, 'IHFAILED');
delete from jtf_fm_status_all
where request_id = P_Request_ID;
PROCEDURE Update_history(P_Request_ID IN NUMBER, P_Status IN VARCHAR) Is
BEGIN
update JTF_FM_REQUEST_HISTORY_ALL
set outcome_code = P_Status
where hist_req_id = P_Request_id;