Re: DISTINCT ... ORDER BY

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Nabil Sayegh <postgresql(at)e-trolley(dot)de>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: DISTINCT ... ORDER BY
Date: 2003-11-05 21:16:30
Message-ID: 20031105131518.C12206@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, 5 Nov 2003, Nabil Sayegh wrote:

> Stephan Szabo wrote:
>
> > Your step 3 above isn't well defined in general. There's no single place
> > in the sort order for a value of a column being distincted when the value
> > occurs multiple times. In the data above, col1='b' occurs twice in the
> > sort order and you need to give an indication of which place in the sort
> > order you want to use.
>
> Ok, let's look for alternatives.

Well, what did you get when you tried something like Bruno's updated
example or my group by one, and lets work from there.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Nabil Sayegh 2003-11-05 21:27:40 Re: DISTINCT ... ORDER BY
Previous Message Bruno Wolff III 2003-11-05 20:49:30 Re: DISTINCT ... ORDER BY