problem - group by - Mailing list pgsql-novice

From Dusan PESL
Subject problem - group by
Date
Msg-id 87.307-12617-1810157773-1179067046@seznam.cz
Whole thread Raw
List pgsql-novice
Hello,

I have found the solution of "GROUP BY" problem. Instead of:

SELECT acount/1000, SUM(values) FROM acounts
GROUP BY acount/1000

this query works:

SELECT acount/1000 AS acount_1000, SUM(values) FROM acounts
GROUP BY acount_1000

so, forget my previous question...

Best regards Dusan

pgsql-novice by date:

Previous
From: Dusan PESL
Date:
Subject: problem - group by
Next
From: Rodrigo De León
Date:
Subject: Re: return modified data from a function