pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steven Murdoch <psql+Steven.Murdoch@cl.cam.ac.uk>
To: pgsql-sql@postgresql.org
Subject: Re: Sorting items in aggregate function (thanks)
Date: Fri, 15 Sep 2006 10:15:09 +0100
Message-ID: <20060915091509.GA32646@cl.cam.ac.uk> (raw)
In-Reply-To: <21365.1158093475@sss.pgh.pa.us>
References: <20060912154628.GB4991@cl.cam.ac.uk>
	<20060912181759.GA66966@winnie.fuhr.org>
	<21365.1158093475@sss.pgh.pa.us>

On Tue, Sep 12, 2006 at 04:37:55PM -0400, Tom Lane wrote:
> Note that if you need to GROUP in the outer query, it's best to sort the
> inner query's output first by the outer query's grouping:
...

Great - this works fine. Thanks also to the other people who replied.

Steven.

-- 
w: http://www.cl.cam.ac.uk/users/sjm217/

Message-ID: <20060915091509.GA32646@cl.cam.ac.uk>
Permalink:  ../20060915091509.GA32646@cl.cam.ac.uk/
Also on:    postgresql.org/message-id/20060915091509.GA32646@cl.cam.ac.uk

 · 

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: psql+Steven.Murdoch@cl.cam.ac.uk
  Subject: Re: Sorting items in aggregate function (thanks)
  In-Reply-To: <20060915091509.GA32646@cl.cam.ac.uk>

* 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