Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Useful Oracle books - C.J. Date theory vs. practicality

Re: Useful Oracle books - C.J. Date theory vs. practicality

From: Daniel Fink <Daniel.Fink_at_Sun.COM>
Date: Fri, 28 May 2004 12:35:14 -0600
Message-id: <40B78662.6010408@sun.com>


Ah, nulls...

One system I worked on had several columns with the following COLUMN_A VARCHAR2(15) NOT NULL w/Check constraint value in (<list of values>, 'NULL') ARGH!

I think one of the issues is that many (perhaps most) people do not understand the implementation of NULL in Oracle. The above example is just one of several common 'beliefs' that I have seen. I wonder how much this has to do with the tendency (at least what I perceive) to think of 2-valued logic when it comes to TRUE/FALSE and to avoid ambiguity. "Is the sun shining?" "Of course it is" (when I am sitting in an office where I cannot see out a window). The 'correct' answer is "I don't know, let's go to a window and check.", but that seems somewhat ridiculous to actually say in a conversation.

I started my career as a COBOL programmer. IIRC, I never left a data field as 'NULL' (I don't even remember if COBOL has such a concept). We used high values, low values, spaces, 0, etc. Even the little bit of C I did years later, uninitialized variables were treated as having a value, we just did not know what the value was before using the variable. With Oracle, NULL represents no value.   So, which is closest to the meaning of NULL? Is it "unknown value" or "no value". In 3-valued logic, it seems that the two are equivalent. Is it a matter of semantics? Or am I so off-base that I should just go back to my bottle of Scotch and stay out of this?

<change topic>
This is why I think this list is so important. A free exchange of ideas, often with disagreements. Whether you agree or not with the other person, you have been exposed to something different and have learned from it.

To paraphrase Wayne & Garth, "List On, Lex. List On, Dan"

;)

Regards,
Daniel Fink



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Fri May 28 2004 - 13:33:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US