跳至主要內容

库存查询报表

五六零网校小于 1 分钟

代码示例

SELECT T2.[ItmsGrpNam], T0.[ItemCode], T1.[ItemName], T0.[OnHand]
FROM OITW T0
	INNER JOIN OITM T1 ON T0.[ItemCode] = T1.[ItemCode]
	INNER JOIN OITB T2 ON T1.[ItmsGrpCod] = T2.[ItmsGrpCod]
WHERE T0.[WhsCode] = [%0]
	AND T0.[OnHand] > 0
ORDER BY T2.[ItmsGrpNam], T0.[ItemCode]