Hello,
I have written the below query and am stumped as to why some part numbers return a result and others don't.
all have the same information in the tables the only difference is in the item numbers.
item number 02fa10a gives this result.
Item Location Bin QtyOnHand Qty In Fab
02FA10A EUG STOCK 0 110
02FA10A PDX STOCK 0 110
02FA10A SEA F13-C-09 10 110
02FA10A SEA STOCK 0 110
Item number VP70007750M Gives this result.
Item Location Bin QtyOnHand Qty In Fab
Can anyone shed some light as to why this would happen?
Again both have the same information in the tables.
Select
tblimItemLocBin.Item,
tblimItemLocBin.Location,
tblimItemLocBin.Bin,
tblimItemLocBin.QtyOnHand,
Sum(tblwhWorkOrderItem.QuantityInFabrication) As 'Qty In Fab'
From
tblimItemLocBin
Inner Join tblwhWorkOrderItem On tblimItemLocBin.Item =
tblwhWorkOrderItem.Item
Inner Join tblimItem On tblimItem.Item = tblimItemLocBin.Item
Where
tblimItem.Item = 'VP70007750M'
Group By
tblimItemLocBin.Item, tblimItemLocBin.Location, tblimItemLocBin.Bin,
tblimItemLocBin.QtyOnHand
Thanks,
DWG23
I have written the below query and am stumped as to why some part numbers return a result and others don't.
all have the same information in the tables the only difference is in the item numbers.
item number 02fa10a gives this result.
Item Location Bin QtyOnHand Qty In Fab
02FA10A EUG STOCK 0 110
02FA10A PDX STOCK 0 110
02FA10A SEA F13-C-09 10 110
02FA10A SEA STOCK 0 110
Item number VP70007750M Gives this result.
Item Location Bin QtyOnHand Qty In Fab
Can anyone shed some light as to why this would happen?
Again both have the same information in the tables.
Select
tblimItemLocBin.Item,
tblimItemLocBin.Location,
tblimItemLocBin.Bin,
tblimItemLocBin.QtyOnHand,
Sum(tblwhWorkOrderItem.QuantityInFabrication) As 'Qty In Fab'
From
tblimItemLocBin
Inner Join tblwhWorkOrderItem On tblimItemLocBin.Item =
tblwhWorkOrderItem.Item
Inner Join tblimItem On tblimItem.Item = tblimItemLocBin.Item
Where
tblimItem.Item = 'VP70007750M'
Group By
tblimItemLocBin.Item, tblimItemLocBin.Location, tblimItemLocBin.Bin,
tblimItemLocBin.QtyOnHand
Thanks,
DWG23