2013-05-22 62 views

回答

3

最简单的方法是为该WMS位置创建一个手头计数日志。

这两张表之间没有直接关系。可发明表中的物品ID可用于连接到发明转换表。 inventtrans表具有itemid,交易类型(库存交易,转账,物品计数等)和InventDimID。 InventDim表格包含指向您要查找的特定维度组的链接(wmslocationid)。

所以SQL看起来像:

select distinct (itemid) from inventTrans where inventdimid in 
(select inventDimid from inventDim 
where wmslocationid = 'WMSLocationID you care about here') 
+1

感谢。我试图做类似的事情(使用网站ID)。这工作得很好。 –