SQL Server-不显示NULL值

时间:2019-01-21 11:29:15

标签: sql-server tsql

cas=(
SELECT CONVERT(DECIMAL(15, 2), sum(somme))
AND CAST(DATEP AS DATE) BETWEEN DATE(YEAR, -1, CAST(@DATED AS DATE)) 
                            AND DATEAD(YEAR, -1, CAST(@DAT AS DATE))
GROUP BY etab,
         libelle 

我想要一个查询不返回空值的解决方案。

![在此处输入图片描述] [1]

1 个答案:

答案 0 :(得分:0)

查询工作正常 非常感谢您的帮助