Bueno, pude resolverlo utilizando crosstab, de la siguiente manera:
Código MySQL:
Ver original(
'select id, order, value from test ORDER BY 1',
'select distinct order from test ORDER BY 1'
)
(
);
De aca saque la info para poder aplicarlo:
[URL="http://www.postgresql.org/docs/current/interactive/tablefunc.html"]http://www.postgresql.org/docs/current/interactive/tablefunc.html[/URL]
Saludos!