From oracle-l-bounce@freelists.org Fri Sep 3 08:09:47 2004 Return-Path: Received: from air189.startdedicated.com (root@localhost) by orafaq.com (8.11.6/8.11.6) with ESMTP id i83D9lV16221 for ; Fri, 3 Sep 2004 08:09:47 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i83D9lI16215 for ; Fri, 3 Sep 2004 08:09:47 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0AF2472C280; Fri, 3 Sep 2004 08:12:15 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00428-100; Fri, 3 Sep 2004 08:12:14 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3119572C9ED; Fri, 3 Sep 2004 08:12:14 -0500 (EST) Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 03 Sep 2004 08:10:37 -0500 (EST) X-Original-To: oracle-l@freelists.org Delivered-To: oracle-l@freelists.org Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id BBC5F72C835 for ; Fri, 3 Sep 2004 08:10:36 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00830-10 for ; Fri, 3 Sep 2004 08:10:36 -0500 (EST) Received: from priv-edtnes43.telusplanet.net (outbound05.telus.net [199.185.220.224]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 527F472C132 for ; Fri, 3 Sep 2004 08:10:36 -0500 (EST) Received: from localhost ([199.185.220.240]) by priv-edtnes43.telusplanet.net (InterMail vM.6.01.03.03 201-2131-111-105-20040624) with ESMTP id <20040903131357.ABF4372.priv-edtnes43.telusplanet.net@localhost>; Fri, 3 Sep 2004 07:13:57 -0600 Received: from 57.80.136.6 ( [57.80.136.6]) as user centrex@hosting.telus.net@192.168.200.1 by webmail.hosting.telus.net with HTTP; Fri, 3 Sep 2004 06:13:57 -0700 Message-ID: <1094217237.41386e15234bd@webmail.hosting.telus.net> Date: Fri, 3 Sep 2004 06:13:57 -0700 From: Wolfgang Breitling To: lex.de.haan@naturaljoin.nl Cc: oracle-l@freelists.org Subject: RE: Consistent Null Handling References: In-Reply-To: MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1-cvs X-Originating-IP: 57.80.136.6 X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 9073 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: breitliw@centrexcc.com Precedence: normal Reply-To: breitliw@centrexcc.com X-list: oracle-l X-Virus-Scanned: by amavisd-new at freelists.org I don't get that. Under what circumstances will sum(x) and sum(nvl(x,0)) give different results? I can see it for avg, but for sum? Quoting Lex de Haan : > Note however that the following three Oracle expressions are (and always > have been) *different* > that is, they give *different* results under certain conditions: > > - sum(x) > - sum(nvl(x,0)) -- regards Wolfgang Breitling Oracle 7,8,8i,9i OCP DBA Centrex Consulting Corporation www.centrexcc.com -- To unsubscribe - mailto:oracle-l-request@freelists.org&subject=unsubscribe To search the archives - http://www.freelists.org/archives/oracle-l/