0% found this document useful (1 vote)
2K 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.

Uploaded by

vishan78
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
2K 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.

Uploaded by

vishan78
Copyright
© © All Rights Reserved
Available Formats
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;/*


TXN_SOURCE_DOC_NUMBER, TXN_SOURCE_REF_DOC_NUMBER ; populated after CAD */--where
EXTERNAL_SYSTEM_REF_ID = ; -- CST_INV_TRANSACTION_ID = 1457014; --

select * from CST_COST_DISTRIBUTIONS where TRANSACTION_ID = '2121175';


--cost_transaction_type = 'ADJUST' and transaction_id = '1457860';-- = '1274616';
-- event_id = '1937004';

select * from cst_cost_distributions;

select * from CST_COST_DISTRIBUTION_LINES where order by distribution_line_id


desc;

select * from CST_TRANSACTIONS WHERE TXN_SOURCE_DOC_NUMBER = '2132111';

select * from CST_TRANSACTION_ERRORS order by request_id desc;

SELECT * FROM CMR_RCV_TRANSACTIONS ;

select * from CST_TRANSACTION_LAYERS ORDER BY TRANSACTION_ID DESC; --where


val_unit_id = 300000023962899 and inventory_item_id = '100000008244037';

SELECT * FROM CST_LAYER_COSTS CLC WHERE TRANSACTION_ID = 1489056;

select * from inv_org_parameters;

You might also like