| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "omid omoomi" <oomoomi(at)hotmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Aggregates and joined tables... |
| Date: | 2001-02-05 04:06:33 |
| Message-ID: | 7954.981345993@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
"omid omoomi" <oomoomi(at)hotmail(dot)com> writes:
> The platform is PostgreSQL 6.5.2 on i386-unknown-freebsd3.2, compiled by gcc
> 2.7.2.1 .
> I want to write a query which looks like this :
> select fa1 - sum(fc3)
> from A,B,C
> where fa1=fb1 and fb2=fc2
> group by fa1 ;
> unfortunately I get this in result:
> ERROR: Illegal use of aggregates or non-group column in target list
Works fine in current sources. Try upgrading to something newer than
6.5.2 ...
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-02-05 05:08:40 | Re: Strage behavior |
| Previous Message | Tom Lane | 2001-02-05 03:54:25 | Re: 7.1beta4 initdb problem |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | guard | 2001-02-05 06:24:27 | pltcl how to get array value |
| Previous Message | Tom Lane | 2001-02-05 03:39:51 | Re: JOIN chaining not working in 7.1 beta 3 |