[GENERAL] pivot functions with variable number of columns

2012-09-05 Thread punnoose
name 02:35,11:34. Please do help me. Punnoose -- View this message in context: http://postgresql.1045698.n5.nabble.com/pivot-functions-with-variable-number-of-columns-tp5723013.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list

[GENERAL] crosstab

2012-09-04 Thread punnoose
hi all How could i use crostab to display variable number of columns. in the output There could be variable number of columns Regards Punnoose -- View this message in context: http://postgresql.1045698.n5.nabble.com/crosstab-tp5722632.html Sent from the PostgreSQL - general mailing list

Re: [GENERAL] origins/destinations

2009-05-19 Thread denis punnoose
I m new to PostgreSQL so please tell me the drawbacks of is this solution Your Table 3 should not be a table it should be a array. CREATE TABLE table3 (     ori_des        int[][] ); for origin area_n and destination area_m if count is k, then ori_des[n][m] = k. --- On Tue, 19/5/09, Carso