Re: Selecting exactly one row for each column value

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Selecting exactly one row for each column value
Date: 2007-03-06 15:17:19
Message-ID: 20070306151719.GC24007@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am Tue, dem 06.03.2007, um 16:03:36 +0100 mailte Florian Weimer folgendes:
> Is there a better way to implement this?

DISTINCT ON()

http://www.postgresql.org/docs/current/static/sql-select.html#SQL-DISTINCT

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2007-03-06 15:32:35 Re: Selecting exactly one row for each column value
Previous Message Florian Weimer 2007-03-06 15:03:36 Selecting exactly one row for each column value