So here's yet another wrinkle. This query is fine:
I'm back to:
Surely it's not a no-no to use the same field twice in one query????? I know I've done this many, many times in other queries.
It returns:SELECT ByPN_1.PartNumber, ByPN_1.LostPerSetup
FROM (ByPN_1 LEFT JOIN FeederCost1 ON (ByPN_1.ActualMachine = FeederCost1.Machine) AND (ByPN_1.FirstOfFeederSize = FeederCost1.Size) AND (ByPN_1.FirstOfType = FeederCost1.Type)) LEFT JOIN master_attr ON ByPN_1.PartNumber = master_attr.ITEM;
But if I do nothing more than add the "lostpersetup" field a 2nd time (regardless of whether I then try to perform any calculations on it)PartNumber LostPerSetup
103330 2
103405 2
105921 1
105939 2
105954 4
105965 4
SELECT ByPN_1.PartNumber, ByPN_1.LostPerSetup, ByPN_1.LostPerSetup
FROM (ByPN_1 LEFT JOIN FeederCost1 ON (ByPN_1.ActualMachine = FeederCost1.Machine) AND (ByPN_1.FirstOfFeederSize = FeederCost1.Size) AND (ByPN_1.FirstOfType = FeederCost1.Type)) LEFT JOIN master_attr ON ByPN_1.PartNumber = master_attr.ITEM;
I'm back to:
PartNumber Expr1001 LostPerSetup
103330 16X 16X
103405 16X 16X
105921 24X 24X
105939 16X 16X
105954 8X4 8X4
105965 8X4 8X4
Surely it's not a no-no to use the same field twice in one query????? I know I've done this many, many times in other queries.