SELECT ISNULL(SUM(cnt), 0) AS Expr1 FROM vSupplyUsage WHERE (supplyidx = @idx)