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)