pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-general@postgresql.org
Subject: Re: SQL Query
Date: Wed, 5 Dec 2007 13:04:06 +0100
Message-ID: <20071205120406.GG24799@a-kretschmer.de> (raw)
In-Reply-To: <20071205114626.GB27030@fetter.org>
References: <843803.85383.qm@web94301.mail.in2.yahoo.com>
	<20071205114626.GB27030@fetter.org>

am  Wed, dem 05.12.2007, um  3:46:26 -0800 mailte David Fetter folgendes:
> Use the array_accum aggregate from the docs as follows:
> 
> SELECT x, array_to_string(array_accum(y),':')
> FROM your_table
> GROUP BY x;

Yes, no noubt a better solution as my new aggregat...


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net



view thread (45+ messages)  latest in thread

Message-ID: <20071205120406.GG24799@a-kretschmer.de>
Permalink:  ../20071205120406.GG24799@a-kretschmer.de/
Also on:    postgresql.org/message-id/20071205120406.GG24799@a-kretschmer.de

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andreas.kretschmer@schollglas.com
  Subject: Re: SQL Query
  In-Reply-To: <20071205120406.GG24799@a-kretschmer.de>
  References: <843803.85383.qm@web94301.mail.in2.yahoo.com> <20071205114626.GB27030@fetter.org> <20071205120406.GG24799@a-kretschmer.de>

* 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