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

From Oliver Elphick
Subject Re: Turning column into row
Date
Msg-id 1022061408.1400.1042.camel@linda
Whole thread Raw
In response to Turning column into row  ("Tille, Andreas" <TilleA@rki.de>)
Responses Re: Turning column into row
Re: Turning column into row
List pgsql-sql
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.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
    "We are troubled on every side, yet not distressed; we      are perplexed, but not in despair; persecuted, but not
  forsaken; cast down, but not destroyed; Always bearing     about in the body the dying of the Lord Jesus, that
thelife also of Jesus might be made manifest in our      body."        II Corinthians 4:8-10  

pgsql-sql by date:

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