14,494 questions
Try casting the expressions that appear before else, for example:
ā... then cast(Co_Numeric as varchar(max)) else ' ' end as 'Variable_Name'
Sometimes you can use NULL instead of ' '.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have a Case Statement but to close it off, I have
else ' ' end as 'Variable_Name'
This then still outputs a 0 but I want it to be blank. Any idea how I can do this please?
Try casting the expressions that appear before else, for example:
ā... then cast(Co_Numeric as varchar(max)) else ' ' end as 'Variable_Name'
Sometimes you can use NULL instead of ' '.