Re: Turning column into row

From: "Joel Burton" <joel(at)joelburton(dot)com>
To: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>, "Tille, Andreas" <TilleA(at)rki(dot)de>
Cc: "PostgreSQL SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Turning column into row
Date: 2002-05-22 13:14:25
Message-ID: JGEPJNMCKODMDHGOBKDNCEAFCPAA.joel@joelburton.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> -----Original Message-----
> From: pgsql-sql-owner(at)postgresql(dot)org
> [mailto:pgsql-sql-owner(at)postgresql(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tille, Andreas 2002-05-22 13:25:13 Re: Turning column into row
Previous Message Joel Burton 2002-05-22 13:11:29 Re: Turning column into row