From: Hans-Jürgen Schönig <hs@cybertec.at>
To: pgsql-sql@postgresql.org
Subject: Re: Distinct Values
Date: Tue, 05 Jun 2001 11:20:56 +0200
Message-ID: <3B1CA478.B91CBEED@cybertec.at> (raw)
References: <HTaR6.40412$712.4747796@amsnews02.chello.com>
I want a "dirty" solution try something like that. If you use "group by
author" url must be in aggregate function. The authors are now DISTINCT.
myjava=# SELECT author, max(url) FROM books group by author;
author | max
--------+---------
abc | dsafsdf
cde | sdfdsf
(2 rows)
Hans
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: hs@cybertec.at
Subject: Re: Distinct Values
In-Reply-To: <3B1CA478.B91CBEED@cybertec.at>
* 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