I have a sql statement to gather statistics from an Access table:
I attach the record set to a chart, I
I want the Scrap% to be a number with 1 decimal position.
I am at a loss on how to do this, I've tried CAST and CONVERT but haven't had any success, can anyone help?
Code:
Select Top 10 yymm,sum(ScrapAero) As AeroScrap,sum(ScrapVendor) as VendorScrap, sum(CompletedQty) as Completed ,(100*(sum(ScrapAero)+sum(ScrapVendor)))/sum(CompletedQty) as [Scrap%] from MonthlyCompletedNMCARsbyPart N where yymm > '2008/12' and yymm < '2009/07' Group by yymm Order by sum(CompletedQty) Desc
I want the Scrap% to be a number with 1 decimal position.
I am at a loss on how to do this, I've tried CAST and CONVERT but haven't had any success, can anyone help?