Re: select from grouped data

From: Roger Mason <rmason(at)mun(dot)ca>
To: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: select from grouped data
Date: 2021-08-28 13:08:41
Message-ID: y65v93pemxy.fsf@mun.ca
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice


Stephen Frost writes:

>
> It’s generally better as it follows the SQL standard and is more flexible
> as it allows you to get top-N, as I said. DISTINCT ON has always been a
> hack and its use should be discouraged at this point.
>
> When an UPSERT capability exists in the actual standard then it’s use
> should be promoted over other hacks that various vendors have implemented
> also.

OK, thanks, I've filed this discussion away for future reference.
Meanwhile I'm having trouble getting this function to work as a
trigger. I'll start another thread on that.

Thanks again.

Roger

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Roger Mason 2021-08-28 13:20:35 trigger fails
Previous Message Stephen Frost 2021-08-25 22:03:56 Re: select from grouped data