The following lines contain the word 'select', 'insert', 'update' or 'delete':
select avg (send_rcv_date - msg_creation_date ) into l_msg_days from xnp_msgs
where send_rcv_date is not null;
select count(*) into l_total_portings from xnp_sv_soa_vl
where status_phase IN ('ACTIVE', 'OLD');
select count(*) into l_inprogress_portings from xnp_sv_soa_vl
where status_phase IN ('ORDER');
select count(*) into l_inquery_portings from xnp_sv_soa_vl
where status_phase IN ('INQUIRY');
select count(*) into l_xdp_workitems from XDP_FULFILL_WORKLIST ;
select q_alias from XDP_DQ_CONFIGURATION WHERE state = 'DISABLED';
select text into l_wf_path from wf_resources where name = 'WF_WEB_AGENT';
select count(*) into l_num1 from WF_NOTIFICATIONS where status = 'OPEN';
select count(*) into l_num2 from XDP_ADAPTER_REG where ADAPTER_STATUS = 'ERROR';
select count(*) into l_num3 from XDP_FULFILL_WORKLIST where STATUS_CODE = 'ERROR';
select count(*) into l_num4 from XNP_CALLBACK_EVENTS where status ='WAITING' and MSG_CODE='ADAPTER_READY';
select count(*) into l_num5 from XNP_MSGS where MSG_STATUS = 'FAILED';
select count(*) into l_num6 from WF_ITEM_ACTIVITY_STATUSES
where (ITEM_TYPE like 'XNP%' and ACTIVITY_STATUS = 'ERROR');
select count(*) into l_num8 from WF_ITEM_ACTIVITY_STATUSES
where (ITEM_TYPE like 'XDP%' and ACTIVITY_STATUS = 'ERROR');
--select count(*) into l_num7 from XDP_DQ_CONFIGURATION where state = 'DISABLED';