The following lines contain the word 'select', 'insert', 'update' or 'delete':
select mp.organization_code, gse.sample_type, glk.meaning
from gmd_sampling_events gse, mtl_parameters mp, gem_lookups glk
where gse.sampling_event_id = l_event_key
and gse.organization_id = mp.organization_id
and glk.lookup_type = 'GMD_QC_SPEC_TYPE'
and gse.sample_type = glk.lookup_code;
select glk.meaning
from gmd_sampling_events gse, gem_lookups glk
where gse.sampling_event_id = l_event_key
and glk.lookup_type = 'GMD_QC_SOURCE'
and gse.source = glk.lookup_code;
select glk.meaning
from gmd_sampling_events gse, gem_lookups glk
where gse.sampling_event_id = l_event_key
and glk.lookup_type = 'GMD_QC_MONITOR_RULE_TYPE'
and gse.source = glk.lookup_code;
SELECT gse.resources, cr.resource_desc, ri.instance_number
from cr_rsrc_mst cr,
gmp_resource_instances ri,
cr_rsrc_dtl cd,
gmd_sampling_events gse
WHERE gse.sampling_event_id = l_event_key
and cr.resources = gse.resources
and cd.resources = cr.resources
and cd.organization_id = gse.organization_id
and ri.resource_id = cd.resource_id
and ri.instance_id = gse.instance_id;
select a.ss_no, a.description, b.concatenated_segments, b.description, a.revision
from gmd_stability_studies a,
mtl_system_items_b_kfv b
where a.ss_id = ss_id_in
and b.inventory_item_id = a.inventory_item_id
and b.organization_id = a.organization_id;
select source , c.ss_id
from gmd_sampling_events a,
gmd_ss_variants b,
gmd_stability_studies_b c,
gmd_ss_time_points d
where d.sampling_event_id = l_event_key
and d.variant_id = b.variant_id
and b.ss_id = c.ss_id
and a.sampling_event_id = d.sampling_event_id ;
select gse.subinventory, mil.concatenated_segments
from gmd_sampling_events gse, mtl_item_locations_kfv mil
WHERE sampling_event_id = l_event_key
and mil.inventory_location_id = gse.locator_id
and mil.organization_id = gse.organization_id;
select source
from gmd_Sampling_Events
where sampling_event_id = l_event_key ;
select nvl( text, '')
from wf_Resources
where name = 'WF_ADMIN_ROLE' ;
select application_id into l_application_id
from fnd_application where application_short_name='GMD';
select user_name into l_user from fnd_user where user_id=Approver.user_id;
select user_name into l_user from fnd_user where user_id=ame_util.PERSONIDTOUSERID(Approver.person_id);
ame_api.updateApprovalStatus(applicationIdIn => l_application_id,
transactionIdIn => l_event_key,
approverIn => Approver,
transactionTypeIn => l_transaction_type,
forwardeeIn => ame_util.emptyApproverRecord);
select application_id into l_application_id
from fnd_application where application_short_name='GMD';
select user_name into l_user from fnd_user
where user_id=Approver.user_id;
select user_name into l_user from fnd_user
where user_id=ame_util.PERSONIDTOUSERID(Approver.person_id);
ame_api.updateApprovalStatus(applicationIdIn => l_application_id,
transactionIdIn => l_event_key,
approverIn => Approver,
transactionTypeIn => l_transaction_type,
forwardeeIn => ame_util.emptyApproverRecord);