0% found this document useful (0 votes)
47 views1 page

Current Queries

The document contains various SQL queries retrieving data from different database tables for inventory and organizational information. The queries select data on inventory items, safety stocks, organizations, sourcing rules, and excise duty details for different organization IDs. Keywords like segment1, description, inventory_item_status_code, organization_id, item_type, sourcing_rule_name and tables like mtl_system_items_b, org_organization_definitions, MRP_SR_ASSIGNMENTS_V, JAI_INV_SUBINV_DTLS are referenced in the queries.

Uploaded by

Parth Desai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Current Queries

The document contains various SQL queries retrieving data from different database tables for inventory and organizational information. The queries select data on inventory items, safety stocks, organizations, sourcing rules, and excise duty details for different organization IDs. Keywords like segment1, description, inventory_item_status_code, organization_id, item_type, sourcing_rule_name and tables like mtl_system_items_b, org_organization_definitions, MRP_SR_ASSIGNMENTS_V, JAI_INV_SUBINV_DTLS are referenced in the queries.

Uploaded by

Parth Desai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

select segment1, DESCRIPTION, inventory_item_status_code from mtl_system_items_

b where organization_id = 2532;


select segment1, description from mtl_system_items_b where organization_id = 253
2 and item_type = 'EXP';
where segment1 = '0000000C5014';
desc mtl_system_items_b;
select * from mtl_system_items_b where segment1 = '0000000C0338';
select * from MTL_SAFETY_STOCKS_VIEW where organization_id = 2533;
select * from org_organization_definitions where organization_code = '101';
select SEGMENT1, DESCRIPTION, MIN_MINMAX_QUANTITY, INVENTORY_PLANNING_CODE from
mtl_system_items_b where organization_id = 2561 and MIN_MINMAX_QUANTITY > 0;
select distinct(SOURCING_RULE_NAME) from MRP_SR_ASSIGNMENTS_V where ASSIGNMENT_S
ET_ID = 474;
SOURCING_RULE_NAME = 'BATTERY : BUYBACK';
select * from MRP_SR_ASSIGNMENTS_V where ASSIGNMENT_SET_ID = 474 and SOURCING_RU
LE_NAME = 'BATTERY : BUYBACK';
inventory_item_id = 647396;
select * from JAI_INV_SUBINV_DTLS where ORGANIZATION_ID = 2561;

select ood.organization_name,
jai.excise_duty_comm,
jai.ec_code,
jai.excise_duty_reg_no,
jai.excise_duty_range,
jai.EXCISE_DUTY_DIVISION,
jai.EXCISE_DUTY_COMM,
jai.EXCISE_IN_RG23D,
jai.ST_REG_NO,
jai.CST_REG_NO,
jai.VAT_REG_NO,
jai.TRADING,
jai.MANUFACTURING,
jai.EXCISE_23D_ACCOUNT,
jai.MASTER_ORG_FLAG,
jai.MASTER_ORGANIZATION_ID
from JAI_CMN_INVENTORY_ORGS JAI , org_organization_definitions ood where
JAI.organization_id = ood.organization_id
AND LOCATION_ID = 0;
organization_id = 2533;

You might also like