Re: Turning column into row - Mailing list pgsql-sql

From Joel Burton
Subject Re: Turning column into row
Date
Msg-id JGEPJNMCKODMDHGOBKDNCEAFCPAA.joel@joelburton.com
Whole thread Raw
In response to Re: Turning column into row  (Oliver Elphick <olly@lfix.co.uk>)
Responses Re: Turning column into row  ("Tille, Andreas" <TilleA@rki.de>)
List pgsql-sql
> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Oliver Elphick
> Sent: Wednesday, May 22, 2002 5:57 AM
> To: Tille, Andreas
> Cc: PostgreSQL SQL
> Subject: Re: [SQL] Turning column into row
>
>
> On Wed, 2002-05-22 at 08:35, Tille, Andreas wrote:
> >
> > So I have to turn the different properties according to one item into
> > one field insead of one column.
> >
> > How to do this sanely?
>
>
> Use Perl?
>
> According to Joe Celko's book, SQL For Smarties, Sybase provides a
> LIST() aggregate function that does this.  But I don't know of anything
> in PostgreSQL.

http://www.brasileiro.net/postgres/cookbook/view-one-recipe.adp?recipe_id=13
9 will do as a LIST() replacement.

- J



pgsql-sql by date:

Previous
From: "Tille, Andreas"
Date:
Subject: Re: Turning column into row
Next
From: "Joel Burton"
Date:
Subject: Re: Turning column into row