The following lines contain the word 'select', 'insert', 'update' or 'delete':
select primary_cost_method
into l_cost_type_id
from mtl_parameters
where organization_id = p_organization_id;
select item_cost
into x_item_cost
from cst_item_costs
where organization_id = p_organization_id
and inventory_item_id = p_item_id
and cost_type_id = l_cost_type_id;
select list_price_per_unit
into x_item_cost
from mtl_system_items_b
where organization_id = p_organization_id
and inventory_item_id = p_item_id;
select avg(transaction_cost)
into x_item_cost
from mtl_material_transactions
where transaction_id in
( select transaction_id
from
( select transaction_id
from mtl_material_transactions
where transaction_action_id = 27
and transaction_source_type_id = 1
and organization_id = p_organization_id
and inventory_item_id = p_item_id
and transaction_quantity > 0
order by transaction_id desc)
where rownum <= CST_ItemResourceCosts_GRP.LAST_N_PO_RECEIPTS);
select currency_code
into x_currency_code
from cst_organization_definitions
where organization_id = p_organization_id;
select avg_rates_cost_type_id
into l_cost_type_id
from mtl_parameters
where organization_id = p_organization_id;
select resource_rate
into x_resource_rate
from cst_resource_costs
where organization_id = p_organization_id
and resource_id = p_resource_id
and cost_type_id = l_cost_type_id;
select currency_code
into x_currency_code
from cst_organization_definitions
where organization_id = p_organization_id;