try following query
drop table ttt
-----------------------
SELECT
T0.ItemCode
, T0.ItemName
, T0.U_SCE_IN_Industry
, T0.OnHand
, T0.StockValue
,sum(t1.quantity) dd
, 'Qty Sold ' + convert(varchar,datediff(year,(t2.docdate),getdate())) + ' Yr Ago' dsd
into ttt
FROM dbo.OITM T0
LEFT JOIN dbo.AU_SALES_R T1 ON...