Re: [GENERAL] crosstab doesn't work

2005-11-25 Thread Martijn van Oosterhout
On Fri, Nov 25, 2005 at 03:09:06PM +0100, Vittorio wrote: > Dear all, > crosstab doesn't seem to work > anymore putting the above select into crosstab > > switch=# select * from > crosstab('select rowid,attribute, sum(value) as val from ct1 group by > rowid, attribute order by 1,2;', 2) as c

[GENERAL] crosstab doesn't work

2005-11-25 Thread Vittorio
Dear all, I installed postgresql 8.04 on a pentium box with freebsd 5.4 # psql --version psql (PostgreSQL) 8.0.4 In the db switch I have the following ct1 table switch=# select * from ct1 order by 1,2; id | rowclass | rowid | attribute | value +--+---+--- +---