| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Implementation of boolean types.
Tony Andrews wrote:
> Jonathan Leffler wrote:
>
>>-CELKO- wrote: >> >>>SQL deliberately left out Booleans [...] >> >>SQL-1999 and SQL-2003 both have a BOOLEAN type, with recognized values >>TRUE, FALSE and UNKNOWN. I'm not clear whether NULL is equivalent to >>UNKNOWN or not; I've not scrutinized the weasel-words carefully enough.
Consider a table that holds the shoe size of 3 entities. Me (John), George Bush and my keyboard.
Description | Shoe Size
-------------+------------
John | 10 UK George Bush | unknown My Keyboard | null
So we can see that null and unknown mean different things. George has a shoe size, but I don't know it, wheras my keyboard doesn't have a shoe size.
Having said that, I believe that NULLs are a bad thing, and would never use them. (The example above could be normalised away by separating it into 2 tables with no "shoe size" entry for "My Keyboard".
John Received on Thu Jul 14 2005 - 08:22:59 CDT
![]() |
![]() |