SQL 2005 Reporting Services if check for null

前端 未结 5 394
Happy的楠姐
Happy的楠姐 2021-01-19 00:41

In SSRS 2005 I have a table with a dataset linked to it. I want to check if the value of a field is null and if it is not null then format the data to make sure it has one d

5条回答
  •  -上瘾入骨i
    2021-01-19 01:17

    I would try using ISNULL(fieldname, 0) when querying for your dataset.

    If you are connecting to a datasource without an ISNULL operator (ie. Oracle) then try using COALESCE(fieldname, 0), which iSeries, oracle and sql all support.

提交回复
热议问题