Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. SELECT [Active Plant Parts Made From Dept Produced Components
  2. Usage].ASSEMBLY_ITEM_NO, [Active Plant Parts Made From Dept Produced
  3. Components Usage].COMPONENT_ITEM_NO, [Active Plant Parts Made From Dept
  4. Produced Components Usage].COMPONENT_QTY, [Active Plant Parts Made From Dept
  5. Produced Components Usage].[3 Yr Average], [Active Plant Parts Made From
  6. Dept Produced Components Usage].[Comp Usage], NOETIX_SYS_INVUS_CATEGORY_ALL.
  7. [A$CAT$ITEM_TYPE] INTO [Department Component Usage and Assembly Type]
  8. FROM [Active Plant Parts Made From Dept Produced Components Usage] INNER
  9. JOIN NOETIX_SYS_INVUS_CATEGORY_ALL ON [Active Plant Parts Made From Dept
  10. Produced Components Usage].ASSEMBLY_ITEM_NO = NOETIX_SYS_INVUS_CATEGORY_ALL.
  11. [A$ITEM$ITEM_NUMBER]
  12. WHERE ((([Active Plant Parts Made From Dept Produced Components Usage].[3 Yr
  13. Average])<>0) AND (([Active Plant Parts Made From Dept Produced Components
  14. Usage].[Comp Usage])<>0) AND ((NOETIX_SYS_INVUS_CATEGORY_ALL.
  15. [A$CAT$ITEM_TYPE])="AFT")) OR ((([Active Plant Parts Made From Dept Produced
  16. Components Usage].[3 Yr Average]) Is Not Null) AND (([Active Plant Parts
  17. Made From Dept Produced Components Usage].[Comp Usage]) Is Not Null) AND
  18. ((NOETIX_SYS_INVUS_CATEGORY_ALL.[A$CAT$ITEM_TYPE])="AFT+")) OR
  19. (((NOETIX_SYS_INVUS_CATEGORY_ALL.[A$CAT$ITEM_TYPE])="OEM")) OR
  20. (((NOETIX_SYS_INVUS_CATEGORY_ALL.[A$CAT$ITEM_TYPE])="OEM+"))
  21. ORDER BY [Active Plant Parts Made From Dept Produced Components Usage].[3 Yr
  22. Average] DESC , [Active Plant Parts Made From Dept Produced Components
  23. Usage].[Comp Usage] DESC , NOETIX_SYS_INVUS_CATEGORY_ALL.[A$CAT$ITEM_TYPE];
  24.  
  25. <>0 And Is Not Null
  26.  
  27. "X" Or "Y" Or "Z"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement