Re: [GENERAL] Select rotate in PostgreSql

2013-03-13 Thread Fabrízio de Royes Mello
On Wed, Mar 13, 2013 at 10:32 AM, Andre Lopes wrote: > Hi all, > > I don't know how to ask for this. I need to rotate a Select in > PostgreSql, just like this: http://dpaste.com/1021691/ > > I can achieve this easily without a procedure? > > Hi Andre, If I understood you want to aggregate "commen

Re: [GENERAL] Select rotate in PostgreSql

2013-03-13 Thread Merlin Moncure
On Wed, Mar 13, 2013 at 8:32 AM, Andre Lopes wrote: > Hi all, > > I don't know how to ask for this. I need to rotate a Select in > PostgreSql, just like this: http://dpaste.com/1021691/ > > I can achieve this easily without a procedure? yes: that's not rotation but simple aggregation. look for s