Re: SELECT DISTINCT und ORDER BY Stolperfalle?!

From: Marc Hanisch <hanisch(at)ateam(dot)de>
To: "Markus Wollny" <Markus(dot)Wollny(at)computec(dot)de>
Cc: pgsql-de <pgsql-de-allgemein(at)postgresql(dot)org>
Subject: Re: SELECT DISTINCT und ORDER BY Stolperfalle?!
Date: 2005-04-22 11:06:20
Message-ID: 37f6ba000e7b49d9c705cf0fc8d0f8a9@ateam.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-de-allgemein


Am 22.04.2005 um 12:02 schrieb Markus Wollny:

> select * from
> (select DISTINCT saison_id FROM foo) as bar
> order by substr(saison_id,2,1) DESC, substr(saison_id,1,1) ASC

Hallo,
viele Dank für die prompte Hilfe!!
Gibt es einen Grund, warum es diese Einschränkung bei einem SELECT
DISTINCT gibt?

Einen sonnigen Tag wünscht,
Marc

In response to

Browse pgsql-de-allgemein by date

  From Date Subject
Next Message apoc9009@yahoo.de 2005-04-26 08:49:46 Wird es Table Partitioning in Postgres geben?
Previous Message InTheMood 2005-04-22 10:54:41 Probleme Installation PSQL Debian