select A.cinvaddcode as 货号,A.cinvname as 名称,A.cinvstd as 规格,B.cBatch as 批号,A.ccurrencyname as 型号,A.iLOWsum as 最低库存量,
B.iQuantity as 数量
from inventory as A,Currentstock as B
where B.iQuantity>0 and len(A.cinvaddcode)<6 and len(B.cBatch)>0 AND A.cInvCode=B.cInvCode and A.iLOWsum!=0
order by B.iQuantity |