我试图在此查询中获取十进制值,但无法获取我得到 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