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: on NULLs

RE: on NULLs

From: Lex de Haan <lex.de.haan_at_naturaljoin.nl>
Date: Sat, 6 Aug 2005 13:04:13 +0200
Message-Id: <20050806110414.6F11F1DC7E0@turing.freelists.org>


see Hugh Darwen's paper on www.thethirdmanifesto.com about how to represent missing information without using nulls; this is a direct link to the paper:
http://web.onetel.com/~hughdarwen/TheThirdManifesto/Missing-info-without-nulls.p df

his proposal is based on horizontal and vertical decomposition techniques. as usual, it all starts with some decent data modeling :-)

kind regards,

Lex.  



Steve Adams Seminar http://www.naturaljoin.nl/events/seminars.html

-----Original Message-----

How would you get rid of NULL columns?

  1. You could write an application where each table consisted of the primary key and only one attribute column. Then you would use left outer joins to determine whether a value exists or not. If you didn't have anything to put as the value for an attribute, you simply wouldn't insert the row into the attribute's table.
  2. Another way of doing it, and the way it's done in databases that don't support NULL (or where the developer doesn't know what NULL is and how to use it) is for each attribute to come up with a value that would stand for UNKNOWN. It's easy to do with strings ('UNKNOWN'), fairly easy with dates (1500-01-01 for timestamp field and 9999-01-01 for date-of-birth field) and harder still with numbers (999999999 for UNKNOWN number of livestock on a farm is reasonable, but 999999999 for UNKNOWN amount in a bank account is probably not).
    
    

--

http://www.freelists.org/webpage/oracle-l Received on Sat Aug 06 2005 - 06:06:10 CDT

Original text of this message

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