Hi all!
It's any way to use any SET command for general replacing of all NULLs to ZERO (0) for numbers? It would be useful, because in some cases the relation of NULL values ( a > b ) gives always a false result, instead of the real relation. I know, that is the NVL and coalesce, but if I FORGET to use them, I can receive a false result in the background. If I could replace automatically replace NULL-s with 0-s, I wouldn't receive the wrong result.
E.g:
a = NULL ; b = 1 ;
b > a = false
This is a wrong result. The right would be : b > a = true.
It is true, if I use: NVL(b,0) > NVL(a,0) = true.
If I had any similar function, it would be more secure for me.
Thanks forward any idea!
It's any way to use any SET command for general replacing of all NULLs to ZERO (0) for numbers? It would be useful, because in some cases the relation of NULL values ( a > b ) gives always a false result, instead of the real relation. I know, that is the NVL and coalesce, but if I FORGET to use them, I can receive a false result in the background. If I could replace automatically replace NULL-s with 0-s, I wouldn't receive the wrong result.
E.g:
a = NULL ; b = 1 ;
b > a = false
This is a wrong result. The right would be : b > a = true.
It is true, if I use: NVL(b,0) > NVL(a,0) = true.
If I had any similar function, it would be more secure for me.
Thanks forward any idea!