我试图在此查询中获取Decimal的值,但无法获得NULL值
SELECT CAST(CAST(CAST(CAST(CAST(SUM(CAST(0 AS INT)) AS DECIMAL(10, 2)) * 100 /
CAST(NULLIF(SUM(CAST(0 AS INT)) +
SUM(CAST(0 AS INT)) + SUM(CAST(0 AS INT)), 0)
AS DECIMAL(10, 2)) AS DECIMAL(10, 2)) AS DECIMAL)AS VARCHAR)AS DECIMAL(10,2))
我尝试使用Select ISNULL()并获得输出0.00
还有其他方法可以获得0.00
而不是ISNULL