From: David Johnston <polobo@yahoo.com>
To: 'Oliver d'Azevedo Cristina' <oliveiros.cristina@gmail.com>
To: 'JORGE MALDONADO' <jorgemal1960@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Joining several rows into only one
Date: Wed, 28 Nov 2012 13:52:27 -0500
Message-ID: <00df01cdcd99$83d18850$8b7498f0$@yahoo.com> (raw)
In-Reply-To: <2829F543-88A7-496D-AB22-6D5ECBBB4633@gmail.com>
References: <CAAY=A79L1zaxcSoCUzssHogoezEneWA=ZUEu3veHLk86K-EG_g@mail.gmail.com>
<2829F543-88A7-496D-AB22-6D5ECBBB4633@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-
> owner@postgresql.org] On Behalf Of Oliver d'Azevedo Cristina
> Sent: Wednesday, November 28, 2012 1:42 PM
> To: JORGE MALDONADO
> Cc: pgsql-sql@postgresql.org
> Subject: Re: [SQL] Joining several rows into only one
>
> You need to use the array_agg() and array_to_string() functions.
>
Or you can skip directly to the "string_agg(expression, delimiter)" function.
See http://www.postgresql.org/docs/9.2/interactive/functions-aggregate.html for more information on aggregate-related functions.
David J.
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
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: polobo@yahoo.com, oliveiros.cristina@gmail.com, jorgemal1960@gmail.com
Subject: Re: Joining several rows into only one
In-Reply-To: <00df01cdcd99$83d18850$8b7498f0$@yahoo.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