I'm trying to replace all values in a column where the value is 0 with NULL
SELECT score
REPLACE(score, 0, ISNULL)
FROM kpis
WHERE score=0
or
SELECT score
REPLACE(score, 0, ISNULL)
FROM kpis
But I get a syntax error:
ERROR: syntax error at or near "REPLACE"
LINE 2: REPLACE(score, 0, ISNULL)
caseexpression instead. (Also, REPLACE is for strings, not integers.)