From: | Andrew Gould <andrewgould(at)yahoo(dot)com> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | Postgres Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: crosstab query script (python) attached |
Date: | 2003-06-26 21:19:53 |
Message-ID: | 20030626211953.72098.qmail@web13405.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
--- Joe Conway <mail(at)joeconway(dot)com> wrote:
>
> Just for info, there is a (C language) crosstab
> function in
> contrib/tablefunc.
>
> The one in 7.3 has a serious limitation (the source
> query must ensure
> that for each row in the crosstab, there is a record
> representing each
> column of the crosstab, even if the value is NULL).
> Joe
I'm not sure that's a bad thing. Crosstabs are a
great tool for analysis. My first task is usually to
check for unexpected column titles and unusual volumes
in the "null" column. My script creates a
"null_value" field to account for records without
values for the crosstab. (Initially, I called it
"Null"; but I got nervous about using the word as a
column title.)
Andrew Gould
From | Date | Subject | |
---|---|---|---|
Next Message | Bryan Zera | 2003-06-26 21:40:53 | Re: Dependancies on Tables |
Previous Message | Joe Conway | 2003-06-26 20:41:34 | Re: crosstab query script (python) attached |