|
On Wed, Sep 23, 2015 at 2:13 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:
Let's say I have a nullable variable call MYVAR. And let's say that
its null indicator is currently on. So in SQL, MYVAR is simply equal
to NULL. [...]
In SQL, MYVAR > 2 would be False, since any comparison with NULL is
False.
No, no it wouldn't and no, no it isn't...
In SQL,
when MYVAR is NULL
then
MYVAR > 2 is unknown; neither true or false.
I'm sure you realize this, but it just goes to show how easy it is to screw
up 3 valued logic.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.