From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wei Weng <wweng@kencast.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: simulate union in subselect
Date: Thu, 26 Apr 2001 11:17:07 -0400
Message-ID: <16267.988298227@sss.pgh.pa.us> (raw)
In-Reply-To: <9c7g2a$2f4o$1@news.tht.net>
References: <9c7g2a$2f4o$1@news.tht.net>
"Wei Weng" <wweng@kencast.com> writes:
> I know this is not do-able, but is there any way to simulate the
> following in Postgresql 7.1?
> select id from
> (select id, recv_date as date from table1
> union
> select id, send_date as date from table2) AS subtable
> order by date;
What gives you the idea that this doesn't work?
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, wweng@kencast.com
Subject: Re: simulate union in subselect
In-Reply-To: <16267.988298227@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