Re: count distinct and group by - Mailing list pgsql-general

From Geoff Winkless
Subject Re: count distinct and group by
Date
Msg-id CAEzk6fdVFzmY6_+yBbKk+Qd9YUWns5-QHZ-UP7zc08TqdG5eug@mail.gmail.com
Whole thread Raw
In response to Re: count distinct and group by  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-general
On 7 May 2015 at 11:54, Thomas Kellerer <spam_eater@gmx.net> wrote:
Geoff Winkless schrieb am 07.05.2015 um 12:39:
> in Postgres (unlike MySQL) you can't order a list of values by a column you haven't selected.​

Of course you can, just not when you are aggregating.

​Doh! I missed out that key clause :)

Thanks for correcting me.

Geoff​
 

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: count distinct and group by
Next
From: cchee-ob
Date:
Subject: Re: Getting UDR up and running