Sie sind auf Seite 1von 1

select ts.ProductRef,ts.tranferedfrom,p.unitsinstock,ts.transferedby,p.productTi tle, sum(s1) as s1,sum(s2) as s2,sum(s3) as s3,sum(s4) as s4 ,(select rmsretail.dbo.menuitems.itemincode from rmsretail.dbo.menuitems,pit.dbo .product where rmsretail.dbo.menuitems.itemid = rmsretail.dbo.stocklinkpit.

pititemref and rmsretail.dbo.stocklinkpit.pititemref = p.productref) from pit.dbo.transferstock as ts , pit.dbo.product as p where ts.ProductRef = p.ProductRef group by ts.ProductRef,p.productTitle,ts.tranferedfrom,ts.transferedby,p.unitsin stock

Das könnte Ihnen auch gefallen