Search Postgresql Archives

ridiculously large crosstabs

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

 



I need to generate a very large crosstab. about 50 rows x 50 columns  -- for
a request for a recurring report.

Example: Column Headings = Job_ID    and   Row Headings = Employee_ID   and
Values in the table = Hours_worked

Got the idea?

I've looked at :
http://www.postgresonline.com/journal/archives/14-CrossTab-Queries-in-Postgr
eSQL-using-tablefunc-contrib.html

...and the comments there.

Of course, the Job_IDs change every month... I need some more clues on how
to proceed with this - how to 'get' and output the column headings?

(Using pgsql 8.2)

Thanks,

JPD



-- 
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