SELECT Max(d.dDate) AS 最近销售日期, ds.cInvCode AS 存货编码, Sum(ds.iQuantity) AS 发货数量 INTO 今年发货情况表
FROM dbo_dispatchlist AS d, dbo_dispatchlists AS ds
WHERE (((d.dDate)>'#2008-01-01#'))
GROUP BY ds.cInvCode;
SELECT Max(d.dDate) AS 最近销售日期, ds.cInvCode AS 存货编码, Sum(ds.iQuantity) AS 发货数量 INTO 今年发货情况表
FROM dbo_dispatchlist AS d, dbo_dispatchlists AS ds
WHERE (((d.dDate)>#2008-01-01#))
GROUP BY ds.cInvCode;
成功了,感谢!