I am try to convert a decimal field null values(“0.0”) into empty string (“”) using nullif() method. But the conversion causing an error. I tried the same method for another int field, and it worked fine.
How can I convert decimal null values into empty strings in a sql queries?
'values', double quotes for"column labels"'0.0'is a string (for varchar columns),0.0and0are numbers (for int / dec columns)'0.0'nor0.0arenullsnullif()returnsnullfor the right condition, not an empty stringso you probably want something like this:
or: