From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: record fields as columns in reports
Date: Thu, 28 Jun 2007 11:21:51 -0400
Message-ID: <20070628152151.GD29684@phlogiston.dyndns.org> (raw)
In-Reply-To: <20070628144615.GQ72343@spoetnik.xs4all.nl>
References: <20070628144615.GQ72343@spoetnik.xs4all.nl>
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@crankycanuck.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ajs@crankycanuck.ca
Subject: Re: record fields as columns in reports
In-Reply-To: <20070628152151.GD29684@phlogiston.dyndns.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox