Re: Impossible for a number multiplied by zero to equal zero
- From: Mensanator <mensanator@xxxxxxx>
- Date: Tue, 14 Oct 2008 21:38:35 -0700 (PDT)
On Oct 14, 8:23 pm, Don Del Grande <del_grande_n...@xxxxxxxxxxxxx>
wrote:
Mensanator wrote:
Actually, you have this bass-ackwards. A NULL *will* cancel a
numerical
value. The rule is any mathematical expression containing a NULL
evaluates to NULL. Thus, 1+NULL=NULL or 3*NULL=NULL. The same applies
to 0, which is just another number: 0+NULL=NULL and 0*NULL=NULL.
You would think that 0 * NULL = 0, since NULL usually means "it could
be anything".
Could be, but is, in fact, unknown. Where I use it, this behaviour
is EXACTLY the correct interpretation. If I need to plot the
water table contours, I have to subtract the well DepthToWater
measurements from the surveyed TopOfCasing. If the water depth
is unknown, I WANT the calculated water table elevation to be
unknown, I do NOT want it to treat the unknown DTW as 0 because
that would result in a false calculation which is worse than
a missing calculation.
(I do know in ORACLE that (NULL and FALSE) = FALSE, and
(NULL or TRUE) = TRUE.)
Well, I don't use Oracle and don't think I've ever tried that
in Access. Offhand, it sounds inconsisent.
-- Don\
.
- Follow-Ups:
- Re: Impossible for a number multiplied by zero to equal zero
- From: David R Tribble
- Re: Impossible for a number multiplied by zero to equal zero
- From: Phantom scojocupcake
- Re: Impossible for a number multiplied by zero to equal zero
- From: Don Del Grande
- Re: Impossible for a number multiplied by zero to equal zero
- References:
- Impossible for a number multiplied by zero to equal zero
- From: Phantom scojocupcake
- Re: Impossible for a number multiplied by zero to equal zero
- From: Virgil
- Re: Impossible for a number multiplied by zero to equal zero
- From: Phantom scojocupcake
- Re: Impossible for a number multiplied by zero to equal zero
- From: Mensanator
- Re: Impossible for a number multiplied by zero to equal zero
- From: Don Del Grande
- Impossible for a number multiplied by zero to equal zero
- Prev by Date: Re: Initial ordinal, forming omega 1
- Next by Date: Re: Rewrite this formula...is it possible?
- Previous by thread: Re: Impossible for a number multiplied by zero to equal zero
- Next by thread: Re: Impossible for a number multiplied by zero to equal zero
- Index(es):
Relevant Pages
|