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

Home -> Community -> Usenet -> comp.databases.theory -> Re: Aggregate functions on empty sets in SQL

Re: Aggregate functions on empty sets in SQL

From: David Cressey <david_at_dcressey.com>
Date: Tue, 06 Nov 2001 19:09:45 GMT
Message-ID: <ZzWF7.68$ec1.8634@petpeeve.ziplink.net>


Mikito,

For better or for worse, the aggregate functions were defined to have no value when aggregating over an
empty set. Hence NULL is the right answer.

One could argue whether the definition is as useful as it might be, but that's a different story.

--
Regards,
    David Cressey
    www.dcressey.com
Received on Tue Nov 06 2001 - 13:09:45 CST

Original text of this message

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