I have a table "Cabine" with fields "SBC750" (integer) and "Evaso" (tinyint)
The field Evaso can be 1, 0 or Null
I'm looking for the sum of all sbc750 where Evaso is NOT 1.
I tried with
select sum(sbc750) from cabine where evaso<>1;
but the result is NULL: why???
If I use
select sum(sbc750) from cabine
I obtain 55 and if I use
select sum(sbc750) from cabine where evaso=1
I obtain 34!
So the results might be 21 and not Null. Please help me