On Mon, Dec 7, 2020 at 7:33 PM Ken Tanzer <ken.tanzer@xxxxxxxxx> wrote:
But this has a big advantage in that you can just add other fields to the query, thusly:
After a little more thought and experimenting, I'm not so sure about this part. In particular, I'm not clear why Postgres isn't complaining about the f1 and f2 fields. (It's not giving the "must appear in the GROUP BY clause or be used in an aggregate function" error that I would expect, and that I am getting when I try to apply this to my real query.)
Can anyone explain to me why those fields don't need to be grouped? Thanks.
Ken
--AGENCY SoftwareA Free Software data systemBy and for non-profits(253) 245-3801learn more about AGENCY orfollow the discussion.
AGENCY Software
A Free Software data system
By and for non-profits
(253) 245-3801
learn more about AGENCY or
follow the discussion.