Re: Problems with complex queries ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problems with complex queries ...
Дата
Msg-id 17346.967591317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problems with complex queries ...  ("J. Fernando Moyano" <txinete@wanadoo.es>)
Список 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 по дате отправления:

Предыдущее
От: "J. Fernando Moyano"
Дата:
Сообщение: Problems with complex queries ...
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Problems with complex queries ...