Re: record fields as columns in reports

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: record fields as columns in reports
Date: 2007-06-28 15:21:51
Message-ID: 20070628152151.GD29684@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, Jun 28, 2007 at 04:46:15PM +0200, Reinoud van Leeuwen wrote:
> And I would like an output with something like:
>
> 06/22 06/23 06/24 06/25
> ERROR1 10 10 9 8
> ERROR2 250 300 220 200
> ERROR3 4 2 0 0

I think this should be possible with the "crosstab" functionality
delivered in Joe Conway's tablefunc package, in contrib/.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
I remember when computers were frustrating because they *did* exactly what
you told them to. That actually seems sort of quaint now.
--J.D. Baldwin

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo De León 2007-06-28 15:26:12 Re: record fields as columns in reports
Previous Message Tom Lane 2007-06-28 15:20:56 Re: Is index usage in LIKE-queries with UTF-8 implemented in PG-8.3 ?