日期:2014-05-17 浏览次数:20543 次
INSERT #temp2_wastebook
SELECT a.shopid ,
a.deptid ,
a.goodsid ,
CONVERT(dec(10, 2), '0.00') ,
CONVERT(dec(10, 2), '0.00')
FROM #temp1_SaleCost a
WHERE NOT EXISTS ( SELECT 1
FROM #temp2_wastebook b
WHERE a.shopid = b.shopid
AND a.deptid = b.deptid
AND a.goodsid = b.goodsid )