Re: How do I aggregate data from multiple rows into a delimited list?

From: "D(dot) Dante Lorenso" <dante(at)lorenso(dot)com>
To: Berend Tober <btober(at)ct(dot)metrocast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How do I aggregate data from multiple rows into a delimited list?
Date: 2007-07-04 06:34:13
Message-ID: 468B3F65.2020609@lorenso.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Berend Tober wrote:
> D. Dante Lorenso wrote:
>> I want to select several rows of data and have them returned in a
>> single record with the rows joined by a delimiter.
>
> Review the User Comments at
> "http://www.postgresql.org/docs/8.0/interactive/sql-createaggregate.html"
> for some ideas.

I found a better solution using ARRAY_TO_STRING and ARRAY. My question
email was originally blocked because I sent it to the list from the
wrong email address. Unfortunately it was later unfrozen and sent on to
the list (sorry) because I did more searching and had solved the problem
on my own:

http://archives.postgresql.org/pgsql-general/2007-07/msg00075.php

Thanks for all your help, though!

-- Dante

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2007-07-04 06:59:46 Re: tsearch2 questions
Previous Message Joshua N Pritikin 2007-07-04 06:17:34 tsearch2 questions