If I have a table like this:
How can I turn all NULL values to 0?
Using:
SELECT coalesce(area::text, 0) as area,
coalesce(duration::text, 0) as duration
But it keeps saying:
COALESCE types text and integer cannot be matched.
If I have a table like this:
How can I turn all NULL values to 0?
Using:
SELECT coalesce(area::text, 0) as area,
coalesce(duration::text, 0) as duration
But it keeps saying:
COALESCE types text and integer cannot be matched.