For example I have this query
select column1, column2, column3, column4, column5 from mytable
and it returns
example1|null |example3|example4|example5
examplea|exampleb|examplec|exampled|null
examplex|exampley|null |examplexx|exampleyy
exampleh|null |examplek|examplel|examplem
example1|example2|example3|example4|null
I want to replace (in the SQL statement) all values (of column5) if they are null, replacing them with 0 example. So, I want to convert the results above to this:
example1|null |example3|example4|example5
examplea|exampleb|examplec|exampled|0
examplex|exampley|null |examplexx|exampleyy
exampleh|null |examplek|examplel|examplem
example1|example2|example3|example4|0
Is it possible, and if so how?
Use
ISNULL