Re: Sum of columns - Mailing list pgsql-general

From BladeOfLight16
Subject Re: Sum of columns
Date
Msg-id CA+=1U=U7vQ1rXr4mqEttjXQRVw0iyC8b19epfKTmGQBJTATccQ@mail.gmail.com
Whole thread Raw
In response to Re: Sum of columns  (Marc Mamin <M.Mamin@intershop.de>)
List pgsql-general
On Mon, Sep 9, 2013 at 8:12 AM, Marc Mamin <M.Mamin@intershop.de> wrote:

hi,

in addition to the others comments, you can also remove  " ELSE 0 " from your query.

It will result in <NULL> values that are discarded by SUM.


pgsql-general by date:

Previous
From: David Johnston
Date:
Subject: Re: problem with query
Next
From: Chris Travers
Date:
Subject: Re: Best way to populate nested composite type from JSON`