pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-sql@postgresql.org
Subject: Re: Denormalizing during select
Date: Mon, 24 Feb 2003 14:33:49 -0800
Message-ID: <200302241433.49502.josh@agliodbs.com> (raw)
In-Reply-To: <988d394c6d80ecd1396eac17ff787470@news.teranews.com>
References: <u3kk5v4i276aqv2hv22pn6jh4t3a2ev08g@4ax.com>
	<988d394c6d80ecd1396eac17ff787470@news.teranews.com>


Jeff,

> > I have two tables (A and B) in a one-to-many relationship. When
> > retrieving data from one table (A), I need to denormalize the tables
> > during a select so that values of a column in the many table (B) appear
> > as a list in one field of the output.
> 
> Well, the straightforward way to do this would be with a function:

Can you post the start of this thread?  I think there's a more efficient way 
using custom aggregates, but somhow I never received the original question.


-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (11+ messages)  latest in thread

Message-ID: <200302241433.49502.josh@agliodbs.com>
Permalink:  ../200302241433.49502.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200302241433.49502.josh@agliodbs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, jboes@nexcerpt.com
  Subject: Re: Denormalizing during select
  In-Reply-To: <200302241433.49502.josh@agliodbs.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