Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Experts,

I am struggling with issue for almost an hour now and I now need a help.

I want to return a blank or null instead of 0 as a result from this query:

SQL
COALESCE(CONVERT(FLOAT,ROUND(SUM(
 CASE WHEN [t].Berichtsperiode = @Periode1 THEN [t].[ABC Vorschau] END),0)),0)/1000 AS [ABC alt]


My result : 0

Expected result: or null
Posted

1 solution

Its pretty simple, all you have to do is eliminate COALESCE function which is converting null into "0"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900