Re: Converting row elements into a arrays?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Converting row elements into a arrays?
Date: 2023-03-02 21:34:29
Message-ID: CAKFQuwa_FxvNXqLdYgg9ctTJ675Zp7e2nOCMkPCrYfKbwsDoDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 2, 2023 at 1:58 PM Ron <ronljohnsonjr(at)gmail(dot)com> wrote:

> Postgresql 12.13
>
> Given the sample below, I'm looking for how to generate this output. It's
> like GROUP BY, but generating an array instead of an aggreate number.
>
>
Group By creates groups, that's it. How you aggregate the data that are in
those groups is determined by which function you call. Sure, a function
like "count()" produces a single number, but there are other functions.
Even a whole documentation section listing them.

https://www.postgresql.org/docs/current/functions-aggregate.html

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2023-03-02 21:45:49 Re: Converting row elements into a arrays?
Previous Message Ray O'Donnell 2023-03-02 21:02:41 Re: Converting row elements into a arrays?