pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo De León <rdeleonp@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: record fields as columns in reports
Date: Thu, 28 Jun 2007 10:26:12 -0500
Message-ID: <a55915760706280826r3e009214g65a5b315441ab775@mail.gmail.com> (raw)
In-Reply-To: <20070628144615.GQ72343@spoetnik.xs4all.nl>
References: <20070628144615.GQ72343@spoetnik.xs4all.nl>

On 6/28/07, Reinoud van Leeuwen <reinoud.v@n.leeuwen.net> wrote:
> So the table I store the errormessages in has a format like this:
>
> CREATE TABLE repport_history
> (
>   rundate date,
>   errordescription character varying(255),
>   number bigint
> )
>
>
> 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

1. See contrib/tablefunc.
2. PivotTables (OpenOffice.org or Excel).



view thread (4+ messages)  latest in thread

Message-ID: <a55915760706280826r3e009214g65a5b315441ab775@mail.gmail.com>
Permalink:  ../a55915760706280826r3e009214g65a5b315441ab775@mail.gmail.com/
Also on:    postgresql.org/message-id/a55915760706280826r3e009214g65a5b315441ab775@mail.gmail.com

 · 

reply

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: rdeleonp@gmail.com
  Subject: Re: record fields as columns in reports
  In-Reply-To: <a55915760706280826r3e009214g65a5b315441ab775@mail.gmail.com>

* 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