The following lines contain the word 'select', 'insert', 'update' or 'delete':
select fuser.employee_id,wf.message_type,wf.item_key
from wf_notifications wf,
fnd_user fuser
where wf.notification_id = l_notification_id
and fuser.user_name = wf.RECIPIENT_ROLE;
select approval_mechanism
from hxc_approval_comps hac, hxc_app_period_summary haps
where haps.application_period_id = p_app_bb_id
and haps.application_period_ovn = p_app_bb_ovn
and haps.approval_comp_id = hac.approval_comp_id;
select hacn.notification_number_retries
from hxc_app_period_summary haps
,hxc_approval_comps hac
,hxc_app_comp_notif_usages hacnu
,hxc_app_comp_notifications hacn
where haps.application_period_id = p_app_bb_id
and haps.approval_comp_id = hac.approval_comp_id
and hacnu.approval_comp_id = hac.approval_comp_id
and hacnu.approval_comp_ovn = hac.object_version_number
and hacnu.comp_notification_id = hacn.comp_notification_id
and hacnu.comp_notification_ovn=hacn.object_version_number
and hacnu.enabled_flag = 'Y'
and hacn.notification_action_code = 'REQUEST-APPROVAL-RESEND';
select hac.approval_comp_id
from hxc_approval_comps hac,
hxc_approval_styles has,
hxc_time_building_blocks htb
where htb.time_building_block_id =p_bb_id
and htb.object_version_number = p_bb_ovn
and htb.approval_style_id = has.approval_style_id
and has.approval_style_id = hac.APPROVAL_STYLE_ID
and hac.approval_mechanism = 'PROJECT_MANAGER'
and hac.parent_comp_id is null
and hac.parent_comp_ovn is null;
select hacn.notification_number_retries
from hxc_approval_comps hac
,hxc_app_comp_notif_usages hacnu
,hxc_app_comp_notifications hacn
where hac.approval_comp_id = p_app_comp_id
and hacnu.approval_comp_id = hac.approval_comp_id
and hacnu.approval_comp_ovn = hac.object_version_number
and hacnu.comp_notification_id = hacn.comp_notification_id
and hacnu.comp_notification_ovn=hacn.object_version_number
and hacnu.enabled_flag = 'Y'
and hacn.notification_action_code = 'REQUEST-APPROVAL-RESEND';
select tc.resource_id, tc.start_time, tc.stop_time,tc.last_updated_by
from hxc_time_building_blocks tc
where tc.time_building_block_id = p_bld_blk_id
and tc.object_version_number = p_ovn;
select aps.start_time, -- period_start_date
aps.stop_time, -- period_end_date
aps.time_recipient_id,
aps.recipient_sequence,
aps.time_category_id,
aps.category_sequence
from hxc_app_period_summary aps
where aps.application_period_id = p_app_bb_id
and aps.application_period_ovn = p_app_bb_ovn;
select parent_item_key
from wf_items
where item_type = p_itemtype
and item_key = p_item_key
and root_activity = 'OTL_ERROR_PROCESS';
select ta.attribute3,
ta.attribute4,
ta.attribute5,
ta.attribute6
from hxc_time_attributes ta,
hxc_time_attribute_usages tau,
hxc_time_building_blocks tbb
where tbb.time_building_block_id = p_timecard_bb_id
and tbb.object_version_number = p_timecard_ovn
and tbb.time_building_block_id = tau.time_building_block_id
and tbb.object_version_number = tau.time_building_block_ovn
and ta.time_attribute_id = tau.time_attribute_id
and ta.attribute_category = 'SECURITY';
l_last_updated_by number;
l_last_updated_by;
SELECT hxc_approval_item_key_s.nextval
INTO l_item_key
FROM dual;
update hxc_app_period_summary
set notification_status = 'NOTIFIED',
approval_item_type = p_itemtype,
approval_process_name = l_process_name,
approval_item_key = l_item_key
where application_period_id = l_app_bb_id
and application_period_ovn = l_app_bb_ovn;
p_user_id => l_last_updated_by)
);
update hxc_app_period_summary
set notification_status = 'NOTIFIED'
where application_period_id = l_app_bb_id
and application_period_ovn = l_app_bb_ovn;
select wn.original_recipient
from wf_item_activity_statuses wias,
wf_process_activities wpa,
wf_notifications wn
where wias.item_type = p_itemtype
and wias.item_key = p_itemkey
and wias.process_activity = wpa.instance_id
and wpa.activity_name IN('TC_APR_NOTIFICATION', 'TC_APR_NOTIFICATION_ABS')
and wias.notification_id = wn.notification_id;