This document contains a series of SQL queries retrieving data from various Oracle database tables related to inventory, costing, and transactions. The queries are selecting data for specific inventory items, costs, transactions, and events.
Download as TXT, PDF, TXT or read online on Scribd
0%(1)0% found this document useful (1 vote)
318 views
SQL
This document contains a series of SQL queries retrieving data from various Oracle database tables related to inventory, costing, and transactions. The queries are selecting data for specific inventory items, costs, transactions, and events.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
select * from CST_LAYER_COSTS where inventory_item_id = '100000008249519' order by
layer_cost_id desc;
select * from CST_TRANSACTION_LAYERS where val_unit_id = 300000023962899 and
inventory_item_id = '100000008249519'; select * from CST_COSTED_VU_COSTS_V where inventory_item_id = '100000008249519';
select * from CST_COSTED_VU_ONHAND_V where inventory_item_id = '100000008249519';
SELECT CLC.* FROM CST_LAYER_COSTS CLC, EGP_SYSTEM_ITEMS_B ESIB
--, CST_TRANSACTION_LAYERS CTL WHERE CLC.INVENTORY_ITEM_ID = ESIB.INVENTORY_ITEM_ID AND --CLC.INVENTORY_ITEM_ID = CT.INVENTORY_ITEM_ID AND --CT.TRANSACTION_ID = CLC.TRANSACTION_ID AND --CT.INVENTORY_ORG_ID = IOP.ORGANIZATION_ID AND --ESIB.ORGANIZATION_ID = CT.INVENTORY_ORG_ID AND --CT.TRANSACTION_ID = CLC.TRANSACTION_ID AND ESIB.ITEM_NUMBER = 'XI5' --IOP.ORGANIZATION_CODE = 'VTC' ;
select * from CST_COSTED_VU_COSTS_V ;
select * from CST_I_INV_TRANSACTIONS; /* Populated after transfer to costing */
SELECT * FROM INV_MATERIAL_TXNS order by creation_date desc;
select * from xla_events where event_type_code like '%COST%ADJ%';
select * from xla_transaction_entities ORDER BY ENTITY_ID DESC ;
select * from CST_INV_TRANSACTIONS order by transaction_date desc;/*