Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!drn.maxwell.syr.edu!news.maxwell.syr.edu!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail
From: "vc" <boston103@hotmail.com>
Newsgroups: comp.databases.theory
Subject: Re: So what's null then if it's not nothing?
Date: 29 Nov 2005 05:53:30 -0800
Organization: http://groups.google.com
Lines: 30
Message-ID: <1133272410.483257.280890@o13g2000cwo.googlegroups.com>
References: <cbPgf.1079$ea6.173@news-server.bigpond.net.au>
   <OhPgf.573740$1i.24270@pd7tw2no>
   <2KXgf.1686$ea6.1270@news-server.bigpond.net.au>
   <kob9o1tej5t497r2oa16aijtr4q09brhh5@4ax.com>
   <zd8hf.2337$ea6.1288@news-server.bigpond.net.au>
   <1132794767.327020.194730@g49g2000cwa.googlegroups.com>
   <1132798136.903908.163790@f14g2000cwb.googlegroups.com>
   <1132798608.160942.270970@o13g2000cwo.googlegroups.com>
   <MPG.1def9c2ad76e2619989709@news.ntnu.no>
   <1132867508.797608.286670@o13g2000cwo.googlegroups.com>
   <1132926804.625596.34020@g47g2000cwa.googlegroups.com>
   <MPG.1df147db4b9576998970e@news.ntnu.no>
   <1133040978.145734.282720@z14g2000cwz.googlegroups.com>
   <1133213137.896743.295590@g47g2000cwa.googlegroups.com>
   <1133232777.740200.225290@g14g2000cwa.googlegroups.com>
   <MPG.1df62f4aaf5e4cb8989712@news.ntnu.no>
NNTP-Posting-Host: 65.244.78.22
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1133272415 763 127.0.0.1 (29 Nov 2005 13:53:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 29 Nov 2005 13:53:35 +0000 (UTC)
In-Reply-To: <MPG.1df62f4aaf5e4cb8989712@news.ntnu.no>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: o13g2000cwo.googlegroups.com; posting-host=65.244.78.22;
   posting-account=thIdtgwAAAAhUVpIR1L4IFjCXWRKlxtG
Xref: dp-news.maxwell.syr.edu comp.databases.theory:34738


Jon Heggland wrote:
[...]
> SQL is confused, and breeds confusion. For one thing, NULL is not a
> value. If it were, it would be equal to itself.

With respect to nulls,  SQL is no more confused that Codd's original
work on which SQL's null treatment is based.  There is no need to
attack SQL whose deficiencies are well known if all one wants to
discuss is the notion of null..

>
> > Whether or not two values are considered distinct  is irrelevant to the
> > null = null comparison.
>
> By SQL fiat, perhaps. But *should* it be? What gives SQL the right to
> redefine notions of equality and "distinctness" in this manner? Or never
> mind the right; does it make *sense*? Is it worth the price?

null=null evaluates to unknown according to the 3vl logic rules.

Again, SQL per se does not have much to do with the notion of null.
Please see Codd's article I mentioned earlier and comment on it rather
that criticizing SQL.

> 
> By the way, is NULL = NULL a valid SQL expression now?
> -- 
> Jon

