Re: SELECT, GROUP BY, and aggregates

From: Bill Moran <wmoran(at)potentialtech(dot)com>
To: Ryan Delaney <ryan(dot)delaney(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT, GROUP BY, and aggregates
Date: 2015-02-13 18:26:30
Message-ID: 20150213132630.00ca5b669114bc903736d5f7@potentialtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Ryan Delaney <ryan(dot)delaney(at)gmail(dot)com> writes:
> > Why couldn't an RDBMS such as postgres interpret a SELECT that omits the GROUP
> > BY as implicitly grouping by all the columns that aren't part of an aggregate?

I'm Mr. Curious today ...

Why would you think that such a thing is necessary or desirable? Simply add the
columns to the GROUP BY clause and make the request unambiguous.

--
Bill Moran

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2015-02-13 18:48:13 Re: SELECT, GROUP BY, and aggregates
Previous Message Tom Lane 2015-02-13 18:19:25 Re: Contrib build fault for pgdg postgres 9.2 at debian 6 (squeeze)