Re: DISTINCT ... ORDER BY - Mailing list pgsql-novice

From Nabil Sayegh
Subject Re: DISTINCT ... ORDER BY
Date
Msg-id 3FA9ABF2.1040700@e-trolley.de
Whole thread Raw
In response to Re: DISTINCT ... ORDER BY  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-novice
Stephan Szabo wrote:

> You'd have to build a min(boolean) (which I'm sortof surprised isn't
> there) or use a case to convert it into an integer.  Or given that it
> looks like you were doing DESC sorts, you'd probably want max().
> DISTINCT ON is a better choice for postgresql, it'll almost certainly be
> faster, but it's not very standard.

Thanks
I've choosen this way and it works like a charm.

cu
--
  e-Trolley Sayegh & John, Nabil Sayegh
  Tel.: 0700 etrolley /// 0700 38765539
  Fax.: +49 69 8299381-8
  PGP : http://www.e-trolley.de


pgsql-novice by date:

Previous
From: Michael Grant
Date:
Subject: 'pg_ctl status' not working
Next
From: so_excited@excite.com (Damon)
Date:
Subject: Re: How to know column constraints via system catalog tables