Re: A GROUP BY question

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Alban Hertroys <haramrae(at)gmail(dot)com>
Cc: stan <stanb(at)panix(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: A GROUP BY question
Date: 2019-08-13 13:19:51
Message-ID: CAKFQuwZL9v1X8obfq09yBjs2oVthr0LfZ4yi-hiUCFTNjKeKwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday, August 13, 2019, Alban Hertroys <haramrae(at)gmail(dot)com> wrote:

>
> > On 13 Aug 2019, at 13:10, stan <stanb(at)panix(dot)com> wrote:
> >
> > select
> > project.proj_no ,
>
> Removed columns that get in the way of your desired result. You can’t have
> both details and the sum over them in a meaningful way.
>

Sure you can, at least generally, with Window Functions/Expressions (i.e.,
OVER)

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Souvik Bhattacherjee 2019-08-13 13:34:35 Re: Bulk Inserts
Previous Message Jan Kohnert 2019-08-13 13:07:46 Re: A GROUP BY question