From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql@peope.net
Cc: pgsql-sql@postgresql.org
Subject: Re: DISTINCT ON () with UNION
Date: Sun, 13 May 2001 20:52:39 -0400
Message-ID: <4539.989801559@sss.pgh.pa.us> (raw)
In-Reply-To: <20010513.23140422@mis.configured.host>
References: <20010513.23140422@mis.configured.host>
pgsql@peope.net writes:
> How can you use a distinct on () including the whole union.
In 7.1 you can write
select distinct ... from (select ... union select ...) ss;
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql@peope.net
Subject: Re: DISTINCT ON () with UNION
In-Reply-To: <4539.989801559@sss.pgh.pa.us>
References: <20010513.23140422@mis.configured.host> <4539.989801559@sss.pgh.pa.us>
* 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