I have the following query:
there are item numbers in the BillNumber that are the same in the ComponentItemCode field.
I don't want the BillNumbers that also exist in the ComponentItemCode.
The above query isn't quite working.
example of result:
Notice that item "80-42500" exist as a BillNumber as well as a ComponentItemCode.
How do I NOT show the "80-42500" from the BillNumber because this item exists as a ComponentItemCode?
Code:
SELECT Bill.BillNumber, Bill.BillDescription1, Last(Bill.CurrentRevision) AS LastOfCurrentRevision, Bill.DefaultWhse, Bill.ProductLine, Bill.BinLocation, Bill.ComponentItemCode, Bill.ItemDescription, Bill.ComponentRevision, Bill.QtyPerBill INTO CurrentBill
FROM Bill
GROUP BY Bill.BillNumber, Bill.BillDescription1, Bill.DefaultWhse, Bill.ProductLine, Bill.BinLocation, Bill.ComponentItemCode, Bill.ItemDescription, Bill.ComponentRevision, Bill.QtyPerBill
HAVING (((Bill.ComponentItemCode)<>[BillNumber]))
ORDER BY Bill.BillNumber;
there are item numbers in the BillNumber that are the same in the ComponentItemCode field.
I don't want the BillNumbers that also exist in the ComponentItemCode.
The above query isn't quite working.
example of result:
Code:
BillNumber ComponentItemCode
80-42500 03-00220
BillNumber ComponentItemCode
BX1200 80-42500
Notice that item "80-42500" exist as a BillNumber as well as a ComponentItemCode.
How do I NOT show the "80-42500" from the BillNumber because this item exists as a ComponentItemCode?