Re: Problems with complex queries ... - Mailing list pgsql-sql

From Tom Lane
Subject Re: Problems with complex queries ...
Date
Msg-id 17346.967591317@sss.pgh.pa.us
Whole thread Raw
In response to Problems with complex queries ...  ("J. Fernando Moyano" <txinete@wanadoo.es>)
List pgsql-sql
"J. Fernando Moyano" <txinete@wanadoo.es> writes:
> I try this on my system: (Postgres 6.5.2, Linux)

> "select n_lote from pedidos except select rp.n_lote from relpedidos rp,
> relfacturas rf where  rp.n_lote=rf.n_lote group by rp.n_lote having
> sum(rp.cantidad)=sum(rf.cantidad)"

> and I get this result:
> ERROR: rewrite: comparision of 2 aggregate columns not supported 

I think this is fixed in 7.0.
        regards, tom lane


pgsql-sql by date:

Previous
From: "J. Fernando Moyano"
Date:
Subject: Problems with complex queries ...
Next
From: Stephan Szabo
Date:
Subject: Re: Problems with complex queries ...