Path: text.usenetserver.com!out02b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!postnews.google.com!m73g2000hsh.googlegroups.com!not-for-mail
From: -CELKO- <jcelko212@earthlink.net>
Newsgroups: comp.databases.theory
Subject: Re: Examples of SQL anomalies?
Date: Mon, 30 Jun 2008 08:52:03 -0700 (PDT)
Organization: http://groups.google.com
Lines: 16
Message-ID: <df83e03c-ee10-4b05-aa1b-74689a32fc99@m73g2000hsh.googlegroups.com>
References: <g3vlk2$6nf$1@aioe.org> <r24864l3hq7evilchjblbdm00hgvmhle0r@4ax.com> 
 <48641b7e$0$4066$9a566e8b@news.aliant.net> <5df510ce-9cbd-4260-b5bc-1ac8ba0b17ba@e39g2000hsf.googlegroups.com> 
 <bv6a649et7clrgaipvb83kfime8tcblmmi@4ax.com> <5e7be9c6-e60a-42ce-8d16-49184a4e51b3@f63g2000hsf.googlegroups.com> 
 <foma64l9qgshnt7pdopcu9b53i9atpcp4p@4ax.com>
NNTP-Posting-Host: 207.71.25.66
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1214841123 19747 127.0.0.1 (30 Jun 2008 15:52:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 30 Jun 2008 15:52:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m73g2000hsh.googlegroups.com; posting-host=207.71.25.66; 
 posting-account=eTE9_AoAAAD1dS9O9Ccywd_vfKFzS40A
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) 
 Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe)
Xref: usenetserver.com comp.databases.theory:171759
X-Received-Date: Mon, 30 Jun 2008 11:52:03 EDT (text.usenetserver.com)

>> If I want the total amount invoiced in a time period and there are no invoices, the total amount invoiced was zero. <<

You have to coalesce the NULL to a zero or drop it as not in the set.
Remember this one from freshman logic when the book got to the Greek
paradoxes?

1) A cat has one more tail than no cat.
2) No cat has 12 tails.
Ergo; a cat has 13 tails.

This is based on confusing the **quantity** zero with the absence of
an entity to have a quantity.  Get a copy of "Zero: The Biography of a
Dangerous Idea" by Charles Seife or "The Nothing that Is: A Natural
History of Zero" by Robert Kaplan and Ellen Kaplan.  There is also a
kid's book, A Place for Zero: A Math Adventure" by Angeline Sparagna
Lopresti and Phyllis Hornung, but it does not get into set theory.
