Search Postgresql Archives

Re: un-pivot with crosstab?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kirk Wythers wrote
> I am trying to follow the example given below, but in reverse. I have
> something like table2, that I am trying to "un-pivot" to look like table1…
> And I seem to be having a booger of a time. 

I see nothing in the tablefunc/crosstab documentation to suggest this can be
done.  You will need to use multiple queries and combine them using "UNION
ALL" to accomplish your goal.

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/un-pivot-with-crosstab-tp5738518p5738530.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux