I have a table like:
1 0.22 0.14 0.05
23 11 0.32 0.16
4 NULL 1 0.39
NULL NULL .8 1
NULL .5 .7 NULL
I want to modify the table to become
1 0.22 0.14 0.05
23 1 0.32 0.16
4 -1 1 0.39
-1 -1 .8 1
-1 .5 .7 -1
If you look I changed the NULL by -1
I was trying:
SELECT
coalesce([a1], -1), coalesce([a2], -1),coalesce([a3], -1), coalesce([a4], -1)
FROM tableee;
Which is correct, but when I do a SELECT * I get the table with null values...
How do I modify the table so when I do a SELECT * I do not get NULL but -1 instead?