标签:HERE sele combine temp sap roo where seq item
SELECT * FROM OUT_MO_RES WHERE PEGGED_ID=‘001201271060‘; --5000175080/160_1-MFG0011
SELECT * FROM V_OUT_MO;
select * from V_OUT_MO_ITEM_1 out_mo_item
left join sap_marc on substr(out_mo_item.loc_ID, 0, 4)=sap_marc.werks and out_mo_item.item=sap_marc.matnr
WHERE PRODUCTIONORDID=‘5000175080/160_1-MFG0011‘ ;
SELECT * FROM OUT_MO WHERE PRODUCTIONORDID=‘5000175080/160_1-MFG0011‘;
SELECT * FROM OUT_MO_ITEM WHERE PRODUCTIONORDID=‘5000175080/160_1-MFG0011‘;
SELECT * FROM TEMP_MO_SPLIT WHERE COMBINE_MO LIKE ‘5000175080/160%‘;
SELECT * FROM TB_MO_SHORT WHERE DEMANDORDERID LIKE ‘%5000175080/160_1-MFG%‘; --5000175080/160_1-MFG000 5000175360/140_1-MFG001
select * from TEMP_SDPP WHERE DEMANDORDERID=‘5000175080/160_1-MFG001‘;
SELECT * FROM TEMP_MO_ITEM WHERE ROOTID=‘5000175080/160_1-MFG001‘;
SELECT * FROM IN_BOM_HEADER WHERE PRODUCT_ID=‘000000102001001625‘;
SELECT * FROM IN_BOM_DETAILS WHERE BOM_ID=‘00367552_2023_01 ‘ AND ITEM_ID LIKE‘000000105%‘;
SELECT DISTINCT
SP.MO_ID,
SP.SPLITSEQ,
MIN (
MS.MO_ID || MS.SPLITSEQ)
OVER (
PARTITION BY MO.SO_ID,
MO.SO_LINE_ID,
MS.SITEID,
MM.MIXITEMMARK,
MS.ITEM_ID,
MS.LINE_ID,
MS.PLAN_START_DATE)
COMBINE_MO
FROM TEMP_MO_SCHEDULING MS,
TEMP_MO_SPLIT SP,
TEMP_MO MO,
TEMP_MO_MIXMARK MM
WHERE SP.MO_ID = MS.MO_ID
AND MO.MO_ID = MS.MO_ID
AND MM.ROOTID = MS.MO_ID
AND SP.SPLITSEQ = MS.SPLITSEQ AND SP.COMBINE_MO LIKE ‘5000175080/160%‘;
标签:HERE sele combine temp sap roo where seq item
原文地址:https://www.cnblogs.com/Snowfun/p/9342029.html