Subject Re: [ib-support] Auditing updates
Author Nando Dessena
Set,

> No, it wouldn't. Comparisons with NULL evaluates as follows:
>
> NULL = 1 false
> NULL = NULL false
> NULL <> 1 false
> NULL <> NULL false
>
> NULL is a state meaning that you don't know and doesn't match anything.

so it shouldn't match false as well as it doesn't match true. :-)

I have once been told that your table should be corrected this way:

> NULL = 1 null
> NULL = NULL null
> NULL <> 1 null
> NULL <> NULL null

if (null = null) were false, then (null <> null) (or, better, (not(null
= null))) should be true, which is not the case as this is not boolean
algebra. I think a simple test can be made:

if (null = null) then
A
else
B

This should return B.

if (not (null = null)) then
A
else
B

This should return B as well.
I am far from being sure of this since I avoid comparing nullables in
the first place, but I would be glad if anyone could confirm or correct
that.
Ciao
--
____
_/\/ando