From: hubert depesz lubaczewski <depesz@depesz.com>
To: Michael Glaesemann <grzm@seespotcode.net>
Cc: Claudia Kosny <ckosny@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: fetch first rows of grouped data
Date: Tue, 28 Aug 2007 15:13:19 +0200
Message-ID: <20070828131319.GA1229@depesz.com> (raw)
In-Reply-To: <2A02E93C-62E7-4D94-8559-B0999835698F@seespotcode.net>
References: <46D2FD9F.3020000@gmx.net>
<20070828091421.GB19637@depesz.com>
<2A02E93C-62E7-4D94-8559-B0999835698F@seespotcode.net>
On Tue, Aug 28, 2007 at 08:00:42AM -0500, Michael Glaesemann wrote:
> >you can try to use "distinct on".
> I considered that as well, but couldn't think of a way to return more
you're right and i was wrong. i simply missed the word "two" in original
question. sorry.
depesz
--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)
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: depesz@depesz.com, grzm@seespotcode.net, ckosny@gmx.net
Subject: Re: fetch first rows of grouped data
In-Reply-To: <20070828131319.GA1229@depesz.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