Created
March 21, 2017 12:51
-
-
Save JoshZastrow/7c398efb5824149daf13d482a7696312 to your computer and use it in GitHub Desktop.
Bar Quantity Yields per Part Number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT PartMtl.PartNum, PartMtl.MtlPartNum, PartMtl.QtyPer, ROUND(12/PartMtl.QtyPer,0) AS 'Bar Yield' | |
FROM ERP10PROD.Erp.PartMtl PartMtl | |
WHERE (PartMtl.UOMCode='FT') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Divides a 12 ft bar by the part materials qty/per. This gives the qty of parts that a bar can produce. Only looks for material that is required by the foot for parts (vs pieces of material, which would just be 1 for 1)