So what's null then if it's not nothing?



I've been accustomed to thinking of things either having a value or
not. If something has no value then, to me, its value is null. Its
value is an empty string (whatever "it" is). Different to having a
value of zero. Different to anything with a value. Now, as I read up on
SQL, I find that null is supposed to mean "unknown". I can't easily
accept that. Does SQL's definition of null (unknown) include the null
I'm familiar with (no value)? That doesn't make sense. If we know
something has no value then its not an unknown value is it? I can't
imagine having to write code where the "if a=b then result=true else
result=false" construct won't work - according to what I'm reading, if
either a or b is null then I should be setting result to unknown
instead. Just can't get my head 'round that. Shouldn't things be a lot
simpler? If something has an unknown value then at least we know
whether it's null (as in an empty string) or not. To me, "unknown" can
be compared with an empty string to see if it's null or not. Sorry -
head is spinning.

Mike.

.



Relevant Pages

  • Re: Values not equal but not returning in Query
    ... If you want to store an empty string in the field, ... unknown values. ... "Lynn Arlington" wrote in message ... >> GlobalSign digital certificate is a forgery and should be deleted without ...
    (microsoft.public.access.queries)
  • Re: So whats null then if its not nothing?
    ... Does SQL's definition of null (unknown) include the null ... Just can't get my head 'round that. ... >> be compared with an empty string to see if it's null or not. ... > Hi Mike, ...
    (comp.databases.theory)
  • Re: So whats null then if its not nothing?
    ... Does SQL's definition of null (unknown) include the null ... Just can't get my head 'round that. ... > whether it's null (as in an empty string) or not. ... Hi Mike, ...
    (comp.databases.theory)
  • Re: So whats null then if its not nothing?
    ... Does SQL's definition of null (unknown) include the null ... > whether it's null (as in an empty string) or not. ... "Unknown" asserts that a value exists, even though it is not known. ... Oracle engineers, in their wisdom, chose to use the same ...
    (comp.databases.theory)
  • Re: So whats null then if its not nothing?
    ... Does SQL's definition of null (unknown) include the null I'm familiar with? ... Just can't get my head 'round that. ... If something has an unknown value then at least we know whether it's null (as in an empty string) or not. ... Precisely because C, PL/I, etc. do not have this notion of NULL, it is necessary in those languages to use "indicator variables" if embedded SQL is used. ...
    (comp.databases.theory)