Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Does Codd's view of a relational database differ from that of Date&Darwin? [M.Gittens]
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jarl Hermansson  
View profile  
 More options Jun 8 2005, 8:51 pm
Newsgroups: comp.databases.theory
From: Jarl Hermansson <j...@mimer.com>
Date: Wed, 8 Jun 2005 10:51:14 +0000 (UTC)
Local: Wed, Jun 8 2005 8:51 pm
Subject: Re: Does Codd's view of a relational database differ from that of Date&Darwin? [M.Gittens]
Paul <p...@test.com> wrote in
news:42a6c7bd$0$32618$ed2619ec@ptn-nntp-reader02.plus.net:

> I'd rather the SUM of a column containing a NULL return NULL. If I
> want to override the behaviour, I can always do a SUM(COALESCE(col)).
> But if the default is to treat NULLs as zero, I can't manually
> override it to the behaviour I want.

> At least MSSQL warns you that it's eliminated a NULL from an
> aggregate, although that's not much use if you're not running the
> query interactively.

Paul,

That's not really a MS SQL Server feature, its according to the ISO/ANSI
SQL standard.

SQL-99:
----
6.16 <set function specification>

General Rules
1) Case:
a) If COUNT(*) is specified, then the result is the cardinality of T.

b) Otherwise, let TX be the single-column table that is the result of
   applying the <value expression> to each row of T and eliminating null
   values. If one or more null values are eliminated, then a completion
   condition is raised: warning — null value eliminated in set function.
----
(SQLSTATE is set to 01003)

Regards,
Jarl


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google