| From: | Alvaro Herrera <alvherre(at)surnet(dot)cl> |
|---|---|
| To: | Mario Soto Cordones - Venezuela <msotocl(at)gmail(dot)com> |
| Cc: | pgsql-es postgresql <pgsql-es-ayuda(at)postgresql(dot)org> |
| Subject: | Re: Query muy complicada |
| Date: | 2005-06-09 19:24:39 |
| Message-ID: | 20050609192439.GF12706@surnet.cl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On Thu, Jun 09, 2005 at 01:55:25PM -0400, Mario Soto Cordones - Venezuela wrote:
> Que me entrega los resultados que quiero, pero ahora a este query
> necesito agragarle que me entregue 2 campos adicionales de otra tabla
> , por lo que hago lo siguiente:
Pon el crosstab en el from, no en la lista de resultados, o sea algo
como
select va_vneto, va_dm, ..
from contabilidad.sahidep a, crosstab( ... ) c
where ...
--
Alvaro Herrera (<alvherre[a]surnet.cl>)
Thou shalt study thy libraries and strive not to reinvent them without
cause, that thy code may be short and readable and thy days pleasant
and productive. (7th Commandment for C Programmers)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fernando San Martín Woerner | 2005-06-09 19:27:22 | Re: Python |
| Previous Message | Alvaro Herrera | 2005-06-09 19:21:16 | Re: Python |