From: Bruno Wolff III <bruno@wolff.to>
To: Nicholas Allen <nallen@freenet.co.uk>
Cc: Dmitry Tkach <dmitry@openratings.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How do you select from a table until a condition is met?
Date: Wed, 12 Feb 2003 14:37:49 -0600
Message-ID: <20030212203749.GA30483@wolff.to> (raw)
In-Reply-To: <200302122055.21790.nallen@freenet.co.uk>
References: <200302121910.38232.nallen@freenet.co.uk>
<200302122010.15297.nallen@freenet.co.uk>
<20030212193538.GA29724@wolff.to>
<200302122055.21790.nallen@freenet.co.uk>
On Wed, Feb 12, 2003 at 20:55:21 +0100,
Nicholas Allen <nallen@freenet.co.uk> wrote:
> I thought of this but the problem is that there may be multiple rows with the
> same value for the column I am sorting on. Eg if sorting on a surname then
> there may be 100s of people with the same surname so generating a where
> clause that selects up to the exact person previously selected is very
> difficult.
Then you should sort on surname AND whatever you are using as the primary key.
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: bruno@wolff.to, nallen@freenet.co.uk, dmitry@openratings.com
Subject: Re: How do you select from a table until a condition is met?
In-Reply-To: <20030212203749.GA30483@wolff.to>
* 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